CSS 文字装饰background模拟下划线
Thu Apr 29 2021 07:44:58 GMT+0000 (Coordinated Universal Time)
Saved by
@ycljcfer
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. <a>Mollitia nostrum placeat consequatur deserunt velit ducimus possimus commodi temporibus debitis quam</a>, molestiae laboriosam sit repellendus sed sapiente quidem quod accusantium vero.</p>
p {
width: 600px;
font-size: 24px;
color: #666;
}
a {
background: linear-gradient(90deg, #0cc, #0cc);
background-size: 100% 3px;
background-repeat: no-repeat;
background-position: 100% 100%;
color: #0cc;
}
content_copyCOPY
https://github.com/chokcoco/iCSS/issues/103
Comments