1
我正在使用滑动门技术来对我正在制作的网站上的按钮进行样式设置,并且它似乎可以在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
这并不回答你的问题,但我倾向于为了避免在它们的效果之后命名类别,最好在它的性质之后命名类别(特别是如果你稍后决定不同的配色方案),例如,称之为“笔记”或“重要” – 2009-07-26 19:09:05
感谢您的建议。 -B – 2009-07-26 19:12:39