css – 如何更改禁用输入的字体颜色?

前端之家收集整理的这篇文章主要介绍了css – 如何更改禁用输入的字体颜色?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要改变CSS中禁用输入元素的样式。
<input type="text" class="details-dialog" disabled="disabled" />

我如何做这个Internet Explorer?

解决方法

您无法使用Internet Explorer。

this comment我写了一个相关的话题:

There doesn’t seem to be a good way,
see:
07001
– 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): 07002

另见,Changing font colour in Textboxes in IE which are disabled

原文链接:https://www.f2er.com/css/222469.html

猜你在找的CSS相关文章