前端技术之(tab按钮)不知道合不合理请高手指点

[b]图片在附件里面[/b]
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>玩转按钮</title>
<style>
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td, figure {padding:0; margin:0;}
body {font:12px/1.5 Arial,Tahoma,Helvetica,simsun,sans-serif;background:#fff;color:#666;}
.sub-light{float:left;margin-left:30px;}


.sub-light a{background-position:right 0;}
.sub-light span{background-position:-92px 0;}
.sub-light a:hover{background-position:right -29px;}
.sub-light a:hover span{background-position:-92px -29px;}
.sub-light a,.sub-light a:hover{padding-right:15px;}
.sub-light span,.sub-light a:hover span{padding-left:15px;margin-left:-15px;position:relative;}
.sub-light a,.sub-light span,.sub-light a:hover,.sub-light a:hover span{background-image:url(images/bt.gif);font-weight:bold;font-size:12px;color:#f08200;text-decoration:none;height:28px; line-height:28px; display:inline-block;float:left;}

.btn-deep{float:left;margin-left:30px;}
.btn-deep a{background-position:right -58px;}
.btn-deep span{background-position:-2px -58px;}
.btn-deep a:hover{background-position:right -87px;}
.btn-deep a:hover span{background-position:-2px -87px;}
.btn-deep a,.btn-deep a:hover{padding-right:10px;}
.btn-deep span,.btn-deep a:hover span{padding-left:10px;margin-left:-10px; position:relative;}
.btn-deep a,.btn-deep span,.btn-deep a:hover,.btn-deep a:hover span{background-image:url(images/bt.gif);color:#fff;text-decoration:none;height:28px; line-height:28px; display:inline-block;float:left;font-weight:bold;}
</style>
</head>

<body>
<div class="sub-light"><a href="#"><span></span>帮助中心</a></div><div class="sub-light"><a href="#"><span></span>帮助中心</a></div>
<div style="clear:both; height:20px;"></div>
<div class="btn-deep"><a href="#"><span></span>帮助中心帮助中心</a></div> <div class="btn-deep"><a href="#"><span></span>帮助中心帮助中心</a></div>
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值