.btn a{text-decoration:none;} .btn{display: inline-block; background: url(s_btn.png) no-repeat 0 0; height: 22px; line-height: 22px; color: #666; vertical-align:top;} .btn i{display:block;font-style: normal; font-size: 12px; padding: 0 10px; background:url(s_btn.png) no-repeat right -22px; } .btn:hover{text-decoration: none;color:#4c8136;background-position: 0 -44px;} .btn:hover i{background-position: right -66px;} .btn:active{background-position: 0 -88px;} .btn:active i{background-position: right -110px;} .btn_disabled, .btn_disabled:hover{background: url(img/s_btn.png) no-repeat 0 -132px;cursor: default;} .btn_disabled i, .btn_disabled:hover i, .s_btn_disabled:active i{background-position: right -154px;color:#999;} 这是按钮 按钮
效果:
查看更多关于css按钮自适应_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did102246