如何更改字体颜色禁用输入? [英] How to change font-color for disabled input?

查看:136
本文介绍了如何更改字体颜色禁用输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更改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 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

这篇关于如何更改字体颜色禁用输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆