我正在使用滑动门技术来设置我正在制作的网站上的按钮样式,它似乎可以在 Chrome 中运行,但对于任何其他浏览器都没有显示背景。我的按钮代码如下:
<div class="small-white"><a href="#">Done Reading</a></div>
CSS:
.small-white {
float:left;
background:url(images/small-white-sprite.png) right no-repeat;
margin: 15px 5px 0 5px;
padding:0;
display:block;
height:22px;
}
.small-white a {
display:block;
background:url(images/small-white-left.png) no-repeat left;
padding:4px 10px 7px 9px;
color:#333;
text-decoration:none;
float:left;
}
请指教。
提前致谢。-B