HTML
<div class="price_div"></div>
CSS
.price_div{
position: relative;
}
::after{
content: '';
position: absolute;
left: 0;
top: 50%;
width: 100%;
height: 2px;
background: #FF186B;
transform: rotate(-5deg);
}
css元素的after制作斜向的删除线
阅读 15
06-17 09:00
HTML
<div class="price_div"></div>
CSS
.price_div{
position: relative;
}
::after{
content: '';
position: absolute;
left: 0;
top: 50%;
width: 100%;
height: 2px;
background: #FF186B;
transform: rotate(-5deg);
}
相关推荐
精彩评论(0)