星空网 > 软件开发 > Java

css3圆角tab选项卡代码

<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery+css3圆角tab选项卡切换</title>
<style>
*{margin: 0;padding: 0;}
body{font: 14px Georgia, serif;}
h1{width: 310px;margin: 0 auto;padding: 20px 0;color: #222;}
.group: before,
.group: after{content: "";display: table;}
.group: after{clear: both;}
.group{zoom: 1;}
body{background: #222;}
#content{background: white;min-height: 400px;}
.tabs{list-style: none;margin: 60px auto 0;width: 660px;}
.tabs li{float: left;position: relative;}
.tabs a{float: left;padding: 10px 40px;text-decoration: none;color: black;background: #ddc385;-webkit-border-top-left-radius: 15px;-webkit-border-top-right-radius: 15px;-moz-border-radius-topleft: 15px;-moz-border-radius-topright: 15px;border-top-left-radius: 15px;border-top-right-radius: 15px;}
.tabs .active{z-index: 3;}
.tabs .active a{background: white;color: black;}
.tabs li: before, .tabs li: after,.tabs li a: before, .tabs li a: after{position: absolute;bottom: 0;}
.tabs li: last-child: after, .tabs li: last-child a: after,.tabs li: first-child: before, .tabs li: first-child a: before,.tabs .active: after, .tabs .active: before,.tabs .active a: after, .tabs .active a: before{content: "";}
.tabs .active: before, .tabs .active: after{background: white;z-index: 1;}
.tabs li: before, .tabs li: after{background: #ddc385;width: 10px;height: 10px;}
.tabs li: before{left: -10px;}
.tabs li: after{right: -10px;}
.tabs li a: after, .tabs li a: before{width: 20px;height: 20px;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;background: #222;z-index: 2;}
.tabs .active a: after, .tabs .active a: before{background: #ddc385;}
.tabs li: first-child.active a: before,.tabs li: last-child.active a: after{background: #222;}
.tabs li a: before{left: -20px;}
.tabs li a: after{right: -20px;}
</style>
<script src='/images/loading.gif' data-original="http://www.cnblogs.com//ajaxjs/jquery-1.6.2.min.js"></script>
<script>
$(function(){
$("li").click(function(e) {
e.preventDefault();
$("li").removeClass("active");
$(this).addClass("active");
});
});
</script>
</head>
<body>
<div>http://www.999jiujiu.com/</div>
<ul >
<li ><a href="#one">One</a></li>
<li><a href="#two">Two</a></li>
<li><a href="#three">Three</a></li>
<li><a href="#three">Four</a></li>
</ul>
<div id="content">
<h1>Round Out Tabs</h1>
</div>
</body>
</html>




原标题:css3圆角tab选项卡代码

关键词:CSS

CSS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

转口贸易:https://www.ikjzd.com/w/1427
亚马逊The Drop:https://www.ikjzd.com/w/1428
海外仓_百飞科海外仓:https://www.ikjzd.com/w/1429
coupons:https://www.ikjzd.com/w/143
展鸿供应链_义乌市展鸿供应链管理有限公司:https://www.ikjzd.com/w/1430
CSS分销系统_深圳市轩飞扬网络科技有限公司:https://www.ikjzd.com/w/1431
马来西亚加强BNPL业务监管,Shopee等服务供应商被点名!:https://www.kjdsnews.com/a/1842255.html
马来西亚加强BNPL业务监管,Shopee等服务供应商被点名!:https://www.goluckyvip.com/news/220218.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流