我为按钮的背景使用了一些 CSS,但它在 Firefox、Chrome 和 IE 中看起来不同。
我正在使用-webkit-linear-gradient
,-moz-linear-gradient
但它们不起作用;Firefox 中的背景是深色的,而 Chrome 中的背景是白色的。
.list-link a {
background:-webkit-gradient(linear,,color-stop(#696969,0),color-stop(#3D3D3D,0.5),color-stop(#292929,0.5),color-stop(#171717,1));
background:-webkit-linear-gradient(center top , #696969 0%, #3D3D3D 50%, #292929 50%, #171717 100%) repeat scroll 0 0 transparent;
background:-moz-linear-gradient(center top , #696969 0%, #3D3D3D 50%, #292929 50%, #171717 100%) repeat scroll 0 0 transparent;
background:-o-linear-gradient(center top , #696969 0%, #3D3D3D 50%, #292929 50%, #171717 100%) repeat scroll 0 0 transparent;
background:linear-gradient(center top , #696969 0%, #3D3D3D 50%, #292929 50%, #171717 100%) repeat scroll 0 0 transparent;
border:1px solid #000000;
-webkit-border-radius:5px 5px 5px 5px;
-moz-border-radius:5px 5px 5px 5px;
border-radius:5px 5px 5px 5px;
-webkit-box-shadow:0 1px 0 0 #949494 inset, 0 -1px 5px 0 #757575 inset;
-moz-box-shadow:0 1px 0 0 #949494 inset, 0 -1px 5px 0 #757575 inset;
box-shadow:0 1px 0 0 #949494 inset, 0 -1px 5px 0 #757575 inset;
color:#FFFFFF;
cursor:pointer;
display:inline-block;
font-weight:normal;
height:auto;
padding:6px 17px;
text-align:center;
text-shadow:none;
}