**
废话不说,看代码
**
html代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tab栏特效</title>
<style>
* {
margin: 0;
padding: 0
}
li {
list-style: none
}
a {
text-decoration: none
}
input {
outline: none;
}
#Tab {
position: relative;
width: 900px;
height: 500px;
margin: 40px auto;
border: 1px solid #000
}
#ul {
width: 100%;
height: 50px;
border-bottom: 1px solid #000000
}
#ul li {
position: relative;
float: left;
width: 90px;
height: 50px;
text-align: center;
line-height: 50px;
border: none;
border-right: 1px solid #000000;
cursor: pointer
}
#ul>li span:first-child {
display: inline-block;
width: 100%;
color: #000
}
#ul>li span:nth-child(2) {
position: absolute;
top: -1px;
right: -1px;
width: 30px;
height: 25px;
line-height: 25px;
font-size: 20px;
border: 1px solid #000000;
background-color: pink;
color: #000;
}
#ul>li span input {
position: absolute;
left: 2px;
top: 8px;
width: 82px;
height: 30px;
outline: none;
}
#ul .bottom-class {
border-bottom: 1px solid #ffffff
}
#nei-div {
width: 100%