兼容ie8的tab选项卡

效果图:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test</title>
<style type="text/css">
.nav-tabs {
border-bottom: 1px solid #ddd;
width:900px;
margin-left: 0;
margin-bottom: 18px;
list-style: none;
}

ul, ol {
padding: 0;
margin: 0 0 9px 25px;
}


.nav-tabs:after{
clear: both;
}
.nav-tabs:before,.nav-tabs:after{
display: table;
content: "";
}

.nav-tabs>li {
margin-bottom: -1px;
}

.nav-tabs>li{
float: left;
}

li {
line-height: 18px;
}

.nav-tabs>li>a {
padding-top: 8px;
padding-bottom: 8px;
line-height: 18px;
border: 1px solid transparent;
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
}

.nav-tabs>li>a, .nav-pills>li>a {
padding-right: 12px;
padding-left: 12px;
margin-right: 2px;
line-height: 14px;
display: block;
}


a {
color: #0088cc;
text-decoration: none;
}


.nav-tabs>.active>a, .nav-tabs>.active>a:hover {
color: #555555;
background-color: #ffffff;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;
}
.nav-tabs>li>a:hover {
background:#eee;
}



</style>


</head>
<body>
<ul class="nav nav-tabs">
  <li class="">
    <a href="#1" data-toggle="tab">Profile</a>
  </li>
  <li class="active"><a href="#2" data-toggle="tab">Settings</a></li>
</ul>
</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值