具体实现代码:
html代码:
<body>
<div></div>
</body>
css代码
div:after{
position:absolute;
width:0px;
height:0px;
content:" ";
border-right:100px solid transparent;
border-top:100px solid transparent;
border-left:100px solid transparent;
border-bottom:100px solid transparent;
}
文章来自:源码在线https://www.shengli.me/css/26.html