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; } /*正确*/
浙公网安备 33010602011771号