代码部分:
<!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>
body {
margin: 0;
padding: 0;
}
.tab {
width: 600px;
height: 300px;
margin: 100px auto;
border: 1px solid #000;
}
.tab .header {
width: 198px;
height: 38px;
line-height: 38px;
background-color: #fff;
border: 1px solid #000;
text-align: center;
float: left;
}
.tab .ac {
background-color: gold;
color: #fff;
}
.tab