我試圖創建一個CSS規則來改變輸入的背景顏色,如果它是必需的,但機器人禁用或聚焦CSS輸入不集中或禁用
我有這個,但它不工作明顯!
<input type="tel" class="form-control" placeholder="Phone" name="phone" value="" required>
和css:
input:not(disabled):not(focus):required {
background-color: rgba(255,0,0,.10)
}
你有什麼工作對我蠻好,https://開頭的jsfiddle。 net/bomnrm0d/ –