请教一下CSS3怎么画出如下的tab,其中一个的样式即可
光阴似箭催人老,日月如移越少年。
css
*,p{ margin:0; padding:0; } .demo{ width:100px; height:50px; border-top:1px solid black; margin:200px; position: relative; } .demo::before{ content: ""; width: 50px; height: 50px; border-left: 1px solid black; transform: rotate(45deg); position: absolute; top: 10px; left: -25px; } .demo::after{ content: ""; width: 50px; height: 50px; border-top: 1px solid black; transform: rotate(45deg); position: absolute; top: 10px; right: -25px; }
html
<p class="demo"></p>
.trapezoid-1 {
height: 0; width: 100px; border-bottom: 100px solid #e5c3b2; border-left: 60px solid transparent; border-right: 60px solid transparent; }
css
html
.trapezoid-1 {