效果:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* 选项卡的样式设置 */
.tab {
position: relative;
width: 680px;
height: 900px;
}
.tab_list li {
float: left;
/* 让li没有小圆点 */
list-style: none;
height: 39px;
line-height: 39px;
padding: 0 20px;
text-align: center;
/* 鼠标经过时,光标变成手指在点击的样子*/
cursor: pointer;