
<div class="line">划重点</div>
.line{
display: flex;
align-items: center;
justify-content: center;
color:#999;
}
.line::before,
.line::after{
content:'';
height: 1px;
width: 100px;
background-color: #eee;
margin: 0 20px;
}
画法还有很多,用伪类元素就对了。掂过碌蔗~
这篇文章探讨了如何使用CSS伪类元素创建独特的视觉效果,通过实例展示了在前端设计中灵活运用这些技巧的重要性。
1653

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



