核心思想:让盒子的宽度和高度调为0
transparent====透明色
<style>
.box{
width: 0px;
height: 0px;
border-top: 55px solid transparent;
border-left: 55px solid transparent;
border-right: 55px solid transparent;
border-bottom: 100px solid yellow;
}
</style>
<body>
<div class="box"></div>
</body>
实现效果:
边框数值设置不一样实现的三角形样子就不一样。