通过 设置 div的 border 实现三角形样式
<html>
<head>
<style>
.sjx{
width:0px;
height:0px;
border-top: 40px solid transparent;
border-left: 40px solid #ff0000;;
}
</style>
</head>
<body>
<div class="sjx"></div>
</body>
</html>
通过 设置 div的 border 实现三角形样式
<html>
<head>
<style>
.sjx{
width:0px;
height:0px;
border-top: 40px solid transparent;
border-left: 40px solid #ff0000;;
}
</style>
</head>
<body>
<div class="sjx"></div>
</body>
</html>