【问题标题】:CSS Customized button not displaying properly with Internet Explorer 9CSS 自定义按钮无法在 Internet Explorer 9 中正确显示
【发布时间】:2013-05-30 22:05:00
【问题描述】:

再次,我遇到了 IE9 和 CSS 的问题。

在这种情况下,我有一个按钮,它在按钮内的文本字母内显示了一些奇怪的阴影或边框。

这是一个例子: http://jsfiddle.net/vYzcY/

.addToCart {
cursor: pointer;
max-width: 200px;
min-width: 136px;
height:26px;
text-align: center;
font-family: Arial,Helvetica,Verdana,Sans-serif;
font-size: 12px;
font-weight: bold;
padding: 1px 6px;
background-color: #492409;
color: white;
margin-top: 5px;
margin-bottom: 10px;
clear: both;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}

谢谢!

【问题讨论】:

    标签: html css button web internet-explorer-9


    【解决方案1】:

    这是由于输入设置为禁用造成的:disabled="disabled"

    不幸的是,您似乎无法使用 CSS 修改 IE 中禁用输入的文本颜色:

    How to change color of disabled html controls in IE8 using css

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-30
      • 2012-10-02
      • 2012-09-16
      • 2011-03-31
      • 1970-01-01
      • 2013-02-11
      • 1970-01-01
      • 2012-03-26
      相关资源
      最近更新 更多