利用CSS怎样写出三角形利用CSS+DIV怎样写

2025-03-02 00:22:36
推荐回答(3个)
回答1:





无标题文档























回答2:

用after尾类,在你要设置剪头的快后面设置after尾类样式
div{
position:relative
}
div:after {
content:"";
position:absolute;
top:“”;
left:“”;
font-size: 0;
line-height: 0;
border-width: 10px;
border-color: red;
border-bottom-width: 0;
border-style: dashed;
border-top-style: solid;
border-left-color: transparent;
border-right-color: transparent;
}

回答3:

在网上搜一下会有很多的介绍

相关问答