<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<link rel="stylesheet" href="css/three-line.css" />
<body>
<div class="three-line">
</div>
</body>
</html>
*{
margin:0;
padding:0;
}
.three-line{
width:150px;
height:30px;
background-color:black;
padding:15px 0;
background-clip:content-box;
border-top:30px solid;
border-bottom: 30px solid;
}
样式如下: