【发布时间】:2013-10-06 04:12:06
【问题描述】:
我使用 css 创建按钮样式,但在 IE9 上出现问题, 它在 Firefox 上运行良好
代码:
.my_box {
-moz-box-shadow:inset 0px 1px 0px 0px #f9eca0;
-webkit-box-shadow:inset 0px 1px 0px 0px #f9eca0;
box-shadow:inset 0px 1px 0px 0px #f9eca0;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f0c911), color-stop(1, #f2ab1e) );
background:-moz-linear-gradient( center top, #f0c911 5%, #f2ab1e 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0c911', endColorstr='#f2ab1e');
background-color:#f0c911;
-webkit-border-top-left-radius:33px;
-moz-border-radius-topleft:33px;
border-top-left-radius:33px;
-webkit-border-top-right-radius:0px;
-moz-border-radius-topright:0px;
border-top-right-radius:0px;
-webkit-border-bottom-right-radius:33px;
-moz-border-radius-bottomright:33px;
border-bottom-right-radius:33px;
-webkit-border-bottom-left-radius:0px;
-moz-border-radius-bottomleft:0px;
border-bottom-left-radius:0px;
text-indent:0;
border:1px solid #e65f44;
display:inline-block;
color:#c92200;
font-family:Arial;
font-size:15px;
font-weight:bold;
font-style:normal;
height:40px;
line-height:40px;
width:100px;
text-decoration:none;
text-align:center;
text-shadow:1px 1px 0px #ded17c;
}
如何让它在 IE9 上运行?
请 JSfiddle 回答
【问题讨论】:
-
检查您是否已将
DOCTYPE设置为htmlstackoverflow.com/questions/5381446/ie9-border-radius -
撇开IE9问题不谈,我认为你的
linear-gradient()syntax是outdated。
标签: html internet-explorer-9 css