我有以下CSS:
<a class="button">
<span>Y</span>
</a>
.button {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background-color: #206CAF;
background: -moz-linear-gradient(top,rgba(255,255,255,0.1) 0,rgba(0,0,0,0.1) 100%) repeat scroll 0 0 #206CAF;
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(255,255,255,0.1)),color-stop(100%,rgba(0,0,0,0.1)));
background: -webkit-linear-gradient(top,rgba(255,255,255,0.1) 0,rgba(0,0,0,0.1) 100%) repeat scroll 0 0 #206CAF;
background: -o-linear-gradient(top,rgba(255,255,255,0.1) 0,rgba(0,0,0,0.1) 100%);
background: -ms-linear-gradient(top,rgba(255,255,255,0.1) 0,rgba(0,0,0,0.1) 100%);
background: linear-gradient(top,rgba(255,255,255,0.1) 0,rgba(0,0,0,0.1) 100%);
border-color: -moz-use-text-color -moz-use-text-color rgba(0, 0, 0, 0.2);
border-image: none;
border-radius: 2px 2px 2px 2px;
border-style: none none solid;
border-width: 0 0 1px;
box-shadow: 0 1px 1px rgba(50, 50, 50, 0.15);
color: #FFFFFF;
cursor: pointer;
display: inline-block;
font-size: 12px;
font-weight: 600;
line-height: 12px;
outline: 0 none;
padding: 5px 10px;
text-align: center;
text-decoration: none;
text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
}
在 chrome 和 safari(mac 和 windows)和 IE 9(windows)上时,整个框不会被渐变覆盖,并且底部有一些空白区域。我的代码有问题还是应该是这样?
在这里看小提琴:http: //jsfiddle.net/VmTks/