设置依附的那个div为position: relative;
.line-after::after {
content: "";
height: 1px;
width: 100%;
transform: scaleY(0.5);
/* transform: translate(0, 50%); */
background-color: #f4f4f4;
position: absolute;
bottom: 0;
left: 0;
}
css画一条高度为0.5px的分割线
最新推荐文章于 2024-04-13 00:00:00 发布