CSS - 关于背景background分析

ul.btns li { background: #f0f0f0 url(1.png) no-repeat; }

ul.btns li:hover { border: 1px solid #b18c58; background-color: #f7dd95; } 

ul.btns li.special{ background: #f0f0f0 url(2.png) no-repeat 3px -57px; } /*错误:hover时会出现背景无法改变*/

ul.btns li.special{ background-image:url(2.png); background-position:3px -57px; } /*正确*/

posted on 2009-11-18 11:39  L.Rain  阅读(140)  评论(0)    收藏  举报