第一种:
<!doctype html>
<html>
<head>
<style>
div{
width:0;
height:0;
border-left:5px solid transparent;
border-right:5px solid transparent;
border-bottom:10px solid #10456b;
dispaly:inline-block;
}
</style>
</head>
<body>
<div></div>
<div></div>
<div></div>
</body>
</html>
效果图:
另外一种:
<!doctype html>
<html>
<head>
<style>
div{
background:#000000;
border-style:solid;
border-color:transparent #fff transparent transparent;
border-width:20px;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
效果图: