选项卡的完整代码~~还有一些自己copy

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<title>选项卡制作</title>
<style type="text/css">
*{margin: 0;padding: 0;}
ul,h3,p{margin: 0;padding: 0;}

#nav ul li p a{text-decoration: none;
 color: #928F8F;
 font-size: 14px;}
 
a:hover{text-decoration: underline;}
 
#nav{width: 220px;
background:/*#0477c0*//*rgba(0, 0, 0, 0.0980392)*/rgba(0, 0, 0, 0.0666667);
margin: 0 0 0 100px;
float: left;
/*border: 1px solid #000;*/}

.title{line-height:50px ;
color: #000000;
font-family: "微软雅黑";
background: rgba(0, 0, 0, 0.0980392) url(img/title.png) no-repeat 20px;
text-indent: 45px;}

ul{}

li{position: relative;
list-style: none;
height: 70px;
text-indent: 10px;
/*border-bottom: 1px solid #0099ff;*/
}

li:hover{background: rgb(255,255,255);}

h3{color: #000000;
line-height: 40px;
font-weight: 600;
font-size: 16px;
background: url(img/li.png) no-repeat 184px;}


#nav ul li .menu{position: absolute;
display: none;
left: 220px;
top: 0;
width: 620px;
/*border: 1px solid #000;*/
}

.left{width: 120px;
      float: left;
      }
     
      .left a{color: #000000;
      text-decoration: none;
      font-weight: 800;
      font-size: 16px;
      float: left;}
     
      /*.right_ul li .right a{text-decoration: none;
      color: #000000;
      line-height: 30px;
      font-weight: 500;
      font-size: 16px;
      }*/
      #nav  ul li .menu a{
      text-decoration: none;
      color: #716E6E;
      line-height: 30px;
      font-weight: 500;
      font-size: 16px;
      }
      #nav  ul li .menu a:hover{text-decoration: underline;}
      #nav  ul li .menu li h3 a{text-decoration: none;
      color: #000000;
      line-height: 30px;
      font-weight: 700;
      font-size: 16px;}
</style>
</head>
<body>
<div id="nav">
<div class="title">
全部课程
</div>
<ul>
<li>
<h3>职业技能</h3>
<p>
<a href="" target="_blank">职场技能</a>
<a href="" target="_blank">SNS营销</a>
<a href="" target="_blank">公务员</a>
</p>
<div class="menu">
<ul class="">
<li>
<h3 class="left"><a href="" target="_blank">互联网产品</a></h3>
<a href="" target="_blank">产品策划</a>
<a href="" target="_blank">游戏策划</a>
<a href="" target="_blank">产品运营</a>
<a href="" target="_blank">游戏运营</a>
</li>
<li>
<h3 class="left"><a href="" target="_blank">互联网产品</a></h3>
<a href="" target="_blank">产品策划</a>
<a href="" target="_blank">游戏策划</a>
<a href="" target="_blank">产品运营</a>
<a href="" target="_blank">游戏运营</a>
</li>
<li>
<h3 class="left"><a href="" target="_blank">互联网产品</a></h3>
<a href="" target="_blank">产品策划</a>
<a href="" target="_blank">游戏策划</a>
<a href="" target="_blank">产品运营</a>
<a href="" target="_blank">游戏运营</a>
</li>
<li>
<h3 class="left"><a href="" target="_blank">互联网产品</a></h3>
<a href="" target="_blank">产品策划</a>
<a href="" target="_blank">游戏策划</a>
<a href="" target="_blank">产品运营</a>
<a href="" target="_blank">游戏运营</a>
</li>
</ul>
</div>
</li>
<li>
<h3>IT培训</h3>
<p>
<a href="" target="_blank">职场技能</a>
<a href="" target="_blank">SNS营销</a>
<a href="" target="_blank">公务员</a>
</p>
</li>
<li>
<h3>语言学习</h3>
<p>
<a href="" target="_blank">职场技能</a>
<a href="" target="_blank">SNS营销</a>
<a href="" target="_blank">公务员</a>
</p>
</li>
<li>
<h3>中小学/大学</h3>
<p>
<a href="" target="_blank">职场技能</a>
<a href="" target="_blank">SNS营销</a>
<a href="" target="_blank">公务员</a>
</p>
</li>
<li>
<h3>兴趣爱好</h3>
<p>
<a href="" target="_blank">职场技能</a>
<a href="" target="_blank">SNS营销</a>
<a href="" target="_blank">公务员</a>
</p>
</li>
<li>
<h3>亲子课堂</h3>
<p>
<a href="" target="_blank">职场技能</a>
<a href="" target="_blank">SNS营销</a>
<a href="" target="_blank">公务员</a>
</p>
</li>
<li>
<h3>职业技能</h3>
<p>
<a href="" target="_blank">职场技能</a>
<a href="" target="_blank">SNS营销</a>
<a href="" target="_blank">公务员</a>
</p>
</li>
</ul>
</div>
</body>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$("#nav ul li").hover(function(){
$(this).find(".menu").show();
},function(){
$(this).find(".menu").hide();
});
</script>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值