我再次面临 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;
}
谢谢!
最佳答案
这是由输入设置为禁用引起的:disabled="disabled"
不幸的是,您似乎无法使用 CSS 修改 IE 中禁用输入的文本颜色:
How to change color of disabled html controls in IE8 using css
关于html - CSS 自定义按钮无法在 Internet Explorer 9 中正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16846603/