【CSS】绘制一个三角形
作者:互联网
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
div{
width: 0px;
height: 0px;
border: 20px solid transparent;
/*border-top: 20px solid red;*/
/*border-left: 20px solid rgba(0,0,0,0);*/
/*border-right: 20px solid transparent;*/
border-bottom: 20px solid red;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
标签:solid,绘制,transparent,red,三角形,0px,border,20px,CSS 来源: https://www.cnblogs.com/HGNET/p/16171689.html