CSS带箭头的下拉栏
<!DOCTYPE html>
<html>
<head>
<style>
.wrap {
position: relative;
background-color: white;
border: 1px solid grey;
width: 300px;
height: 600px;
}
.triangle1 {
display: block;
position: absolute;
width: 0px;
height: 0px;
border: 8px solid transparent;
border-bottom-color: grey;
top: -17px;
left: 20px;
}
.triangle2 {
display: block;
position: absolute;
width: 0px;
height: 0px;
border: 8px solid transparent;
top: -16px;
border-bottom-color: white;
left: 20px;
}
</style>
</head>
<body>
<div class="wrap">
<div class="triangle1"></div>
<div class="triangle2"></div>
</div>
</body>
</html>