input[type="number"] {
background: white;
color: black;
}
input[type="number"]:in-range {
background: green;
color: white;
}
input[type="number"]:out-of-range {
background: red;
color: white;
}
<input c type="number" min="1" max="100">
:out-of-range
と:invalid
の違いは何ですか?
例:あなたの誕生日は何日ですか? :範囲外は32+になります:無効は金曜日または第二になります – Jammin4CO