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="/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 class="tabs group">
<li class="active"><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>

时间: 2024-08-05 08:51:24

css3圆角tab选项卡代码的相关文章

【技术】同页面可多次使用的jQuery tab选项卡代码

        <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>同页面可多次使用的jQuery tab选项卡代码</title><style type="text/css"> *{ margin:0; pad

tab选项卡代码(原生js)

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>tab选项卡一练习</title> <style> *{ margin: 0px; padding: 0px; } #tab{ width: 400px; height: 250px; margin: 20px auto; position: rel

带左右滚动动画特效的jQuery切换的tab选项卡代码

最终效果 1.html结构 2.css结构 3.jquery代码 案例难点:当打开页面后,没有默认的选项卡,鼠标离开所有选项卡后,页面没有停留在最后鼠标经过的选项卡处.通过调用函数moveCount(0)实现了,打开后默认为第一个选项卡,通过ClearStyle()实现了当鼠标离开选项卡后,页面停留在了最后鼠标经过的选项卡处.

常用tab选项卡代码

<div class="box"> <ul> <li class="one">课程介绍</li> <li>报名流程</li> <li>常见问题</li> </ul> <div class="content"> <div class="ct">随着移动互联网的兴起,互联网行业正向更加智能化的Web3

纯css3实现tab选项卡

<!doctype html> <html> <head> <title>Welcome</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="imagetoolbar" content="no" /> <meta name="format

一款纯css3实现的tab选项卡

今天给大家带来一款纯css3实现的tab选项卡.单击左侧的选项的时候,右侧内容以动画的形式展示.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class="night-tabs night-tabs-color-default night-tabs-animation-slide-right night-tabs-position-vleft"> <!--Tab 1--> <input type="radio&qu

原生js实现tab选项卡里内嵌图片滚动特效代码

<!DOCTYPE HTML><html lang="en-US"><head><meta charset="UTF-8"><title>原生js实现tab选项卡里内嵌图片滚动特效代码</title><meta name="keywords" content="原生js实现tab选项卡里内嵌图片滚动特效代码" /><meta name=&

tab选项卡切换代码

tab选项卡切换代码,是通过js来控制一些div的显示达到选项卡切换的效果. 另外可以参考<tab选项卡切换代码>.<CSS选项卡效果代码>.<DIV+CSS选项卡>. 别的不多说了,看DIV+CSS选项卡的演示: 演示地址:tab-xuanxiangka-477/index.htm 下载地址:tab-xuanxiangka-477.zip 另外推荐QQ在线客服代码可以拖动浮动.对联广告滚动代码包括flash和图片.不间断图片左右滚动代码.左右上下浮动广告代码.可浮动的

js实现tab页切换选项卡代码特效

原文:js实现tab页切换选项卡代码特效 源代码下载地址:http://www.zuidaima.com/share/1550463557864448.htm JS 写的tab切换效果