简体   繁体   English

CSS自定义按钮无法在Internet Explorer 9中正确显示

[英]CSS Customized button not displaying properly with Internet Explorer 9

Again, I am facing issues with IE9 and CSS. 同样,我也遇到了IE9和CSS的问题。

In this case I have a button and it shows some weird shadow or border within the letter of the text inside the button. 在这种情况下,我有一个按钮,它在按钮内的文字字母内显示了一些奇怪的阴影或边框。

Here is the example: http://jsfiddle.net/vYzcY/ 这是示例: 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;
}

Thanks! 谢谢!

This is caused by the input being set to disabled: disabled="disabled" 这是由于将输入设置为禁用导致的: disabled="disabled"

Unfortunately it seems like you cannot modify the color of the text for disabled inputs in IE using CSS: 不幸的是,您似乎无法使用CSS修改IE中禁用输入的文本颜色:

How to change color of disabled html controls in IE8 using css 如何使用CSS在IE8中更改禁用的html控件的颜色

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM