如何更改字体颜色禁用输入? [英] How to change font-color for disabled input?
问题描述
我需要更改CSS中禁用的输入元素的样式。
input type =textclass =details-dialogdisabled =disabled/>
我如何为Internet Explorer执行此操作?
您无法使用Internet Explorer。
请参阅这个评论我写了一个相关主题:
似乎没有什么好办法,
参见:
如何在IE8中使用css更改禁用的html控件的颜色
- 您可以将输入设置为readonly
有其他
结果(例如readonly
,
输入
服务器
在提交时,但disabled
,它不会
be):http://jsfiddle.net/wCFBw/40
另请参阅:在IE中的文本框中更改字体颜色已禁用
I need to change the style for a disabled input element in CSS.
<input type="text" class="details-dialog" disabled="disabled" />
How I can do this for Internet Explorer?
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 withreadonly
, theinput
will be sent to the server on submit, but withdisabled
, it won't be): http://jsfiddle.net/wCFBw/40
Also, see: Changing font colour in Textboxes in IE which are disabled
这篇关于如何更改字体颜色禁用输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!