CSS-自定义虚线

<div class="line"></div>
.line::after{
content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #e0e0e0, #e0e0e0 10px, transparent 10px, transparent);
    background-size: 21px 100%;
}

效果:

 

posted @ 2020-07-14 11:21  面包_girl  阅读(524)  评论(0编辑  收藏  举报
/* 鼠标点击文字特效 */