用jQuery来制作tab的选项卡。
说白了就是切换到别的选项,已简单的例子来说,先写出样式.
CSS部分:
<style>
ul,li{
list-style: none;
margin: 0;
padding: 0;
}
.nav {
width: 80%;
line-height: 48px;
background: #f6f8fa;
overflow: hidden;
margin: 10px auto 0;
}
.nav li {
width: 140px;
line-height: 48px;
display: inline-block;
color: #7f7f7f