【问题标题】:IE 8 disabled textbox issue [duplicate]IE 8禁用文本框问题[重复]
【发布时间】:2014-12-15 15:05:51
【问题描述】:

我有一个禁用的文本框,我已经对其应用了填充属性,并且在除 IE8 之外的所有浏览器上都可以正常工作。请看下面的 chrome 图片:

但在 IE 中,同样的内容显示如下:

CSS 代码:

input[type=text]:disabled {    
    padding: 4px 9px !important;    
}

请给我一些解决这个问题的建议。

【问题讨论】:

  • @VitorinoFernandes 请让我知道我应该应用什么 css 来匹配高度,因为我已经尝试了所有方法,但它似乎不起作用。
  • 查看selectivizr

标签: html css


【解决方案1】:

IE8 不支持:disabled 伪类(参见MDN)。

尝试改用input[disabled]

【讨论】:

  • 那么提到type,如何仅指定textbox的类型
  • 你可以堆叠那些input[type="text"][disabled]
  • 感谢他的工作......
猜你喜欢
  • 1970-01-01
  • 2021-06-12
  • 1970-01-01
  • 2012-07-22
  • 2011-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多