.enterBtn .eR{width:126px;height:41px;float:right;}
.enterBtn .eR a{background:url(images/btn_tj.png) 0 0 no-repeat;width:126px;height:41px;display:block;}
.enterBtn .eR a{background:url(images/btn_tj.png) 0 0 no-repeat;width:126px;height:41px;display:block;}
.enterBtn .eR a:hover{background:url(images/btn_tj.png) 0 -41px no-repeat;}
背景图片:0 0 的前面是有空格的!
本文介绍了一种使用CSS为按钮设置背景图片的方法,并展示了如何通过:hover伪类改变鼠标悬停时的显示效果。通过对背景图片URL的调整实现按钮状态的变化。
877

被折叠的 条评论
为什么被折叠?



