How to style readonly attribute with CSS?

后端 未结 9 1660
忘了有多久
忘了有多久 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:49

    input[readonly]
    {
        background-color:blue;
    }
    

    https://curtistimson.co.uk/post/css/style-readonly-attribute-css/

提交回复
热议问题