span:after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #555555;
content: "";
position: relative;
width: 0;
}留个记录
本文介绍了一个实用的CSS伪元素技巧,通过使用span:after设置三角形样式,实现网页设计中的装饰效果。此方法利用纯CSS实现,无需额外图片资源。
span:after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #555555;
content: "";
position: relative;
width: 0;
}
6万+
5872
2771
293

被折叠的 条评论
为什么被折叠?
