最好是让UI给你张图 要不会很麻烦
下边是大致实现的css
<div id='chevron'></div>
#chevron {
position: relative;
text-align: center;
margin-bottom: 6px;
height: 100px;
width: 200px;
background: red;
}
#chevron:before {
width: 0px;
height: 0px;
border-top: 50px solid red;
border-left: 100px solid transparent;
position: absolute;
left: 0;
top: 100%;
content: '';
}
#chevron:after {
width: 0px;
height: 0px;
border-top: 50px solid red;
border-right: 100px solid transparent;
position: absolute;
right: 0;
top: 100%;
content: '';
}
4 回答1.4k 阅读✓ 已解决
2 回答1.7k 阅读✓ 已解决
4 回答1.7k 阅读
3 回答1.5k 阅读✓ 已解决
1 回答1k 阅读✓ 已解决
1 回答808 阅读✓ 已解决
3 回答921 阅读
要实现这样带发光的倒三角,为何不直接用背景图片呢?