要点:div的宽高都设置为0,border设置很大,然后调整每条边的颜色即可 !!!
<style>
#box{
width: 0px;
height: 0px;
border: 100px solid;
border-top-color: transparent;
border-bottom-color: teal;
border-left-color: transparent;
border-right-color: transparent;
}
</style>
<body>
<p>想要什么样的三角,就把另外三边的border-xxx-color换成透明色</p>
<div id="box"></div>
</body>
啦啦啦啦啦啦我是卖报的小行家