How to change font-color for disabled input?

后端 未结 10 1073
逝去的感伤
逝去的感伤 2020-12-02 12:48

I need to change the style for a disabled input element in CSS.



        
10条回答
  •  攒了一身酷
    2020-12-02 13:39

    You can't for Internet Explorer.

    See this comment I wrote on a related topic:

    There doesn't seem to be a good way, see: How to change color of disabled html controls in IE8 using css - you can set the input to readonly instead, but that has other consequences (such as with readonly, the input will be sent to the server on submit, but with disabled, it won't be): http://jsfiddle.net/wCFBw/40

    Also, see: Changing font colour in Textboxes in IE which are disabled

提交回复
热议问题