简体   繁体   中英

CSS Customized button not displaying properly with Internet Explorer 9

Again, I am facing issues with IE9 and 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/

.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"

Unfortunately it seems like you cannot modify the color of the text for disabled inputs in IE using CSS:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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