我有这个使用渐变样式的 CSS 类:
.zui-btn
{
padding:5px 15px; margin:0; border:1px solid #ccc;text-shadow: 0px 1px #fff; text-align:center;
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #dddddd 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#dddddd));
background: -webkit-linear-gradient(top, #ffffff 0%,#dddddd 100%);
background: -o-linear-gradient(top, #ffffff 0%,#dddddd 100%);
background: -ms-linear-gradient(top, #ffffff 0%,#dddddd 100%);
background: linear-gradient(to bottom, #ffffff 0%,#dddddd 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dddddd');
}
我已将其应用于链接和按钮。但是在IE8、IE9的链接中没有通过结果。见http://jsfiddle.net/88mSc/14/
<a href="#" class="zui-btn">Modify</a>
<button type="button" class="zui-btn">Hello World</button>
我究竟做错了什么?