梯形制作过程中,涉及到border-left /right transparent(背景透明) 还需要图形的宽度
代码如下:
<div id="oricl"></div> <div id="oricl1"></div>
#oricl{ border-bottom: 100px solid red; border-left: 50px solid transparent; border-right: 50px solid transparent; height: 0; width: 100px; } #oricl1{ margin-top:20px ; border-top: 100px solid red; border-left: 50px solid transparent; border-right: 50px solid transparent; height: 0; width: 100px; }