How to style readonly attribute with CSS?

后端 未结 9 1674
忘了有多久
忘了有多久 2020-12-12 21:45

I\'m currently using readonly=\"readonly\" to disable fields. I\'m now trying to style the attribute using CSS. I\'ve tried using

input[readonly] {
/*styling         


        
9条回答
  •  情话喂你
    2020-12-12 21:57

    input[readonly], input:read-only {
        /* styling info here */
    }
    

    Shoud cover all the cases for a readonly input field...

提交回复
热议问题