text和textarea中都是#ccc為什么顏色不同
input[type="text"]:read-only{
? border-color: #ccc;
}
textarea :read-only {
? border: 1px solid #ccc;
? height: 50px;
? resize: none;
? background: #eee;
}
這里的text和textarea設置的border顏色都是#ccc為什么顯示不同
input[type="text"]:read-only{
? border-color: #ccc;
}
textarea :read-only {
? border: 1px solid #ccc;
? height: 50px;
? resize: none;
? background: #eee;
}
這里的text和textarea設置的border顏色都是#ccc為什么顯示不同
2019-08-07
舉報
2019-09-21
沒毛病,可以正確使用呀
2019-08-12
textarea :read-only 這個寫法是沒用的,雖然沒報錯,但textarea不支持 :read-only這樣的寫法,
你改成
就好了,用屬性選擇器