CSS - box-shadow
2017-04-26 •
评论
box-shadow 为元素块添加阴影。
欢迎 来到 小尾巴 的空间
css
代码
color: #fff;
padding: 2px 4px;
font-size: 12px;
border-radius: 3px;
background-color: #1abc9c;
a {
position: relative;
white-space: normal;
border-bottom: .0625rem dashed #1abc9c;
text-decoration: none;
color: #1abc9c;
}
a:after {
position: absolute;
bottom: -.0625rem;
left: 100%;
width: 0;
border-bottom: .0625rem solid #1abc9c;
content: "";
transition: width .35s,left .35s
}
a:hover:after {
left: 0;
width: 100%;
transition: width .35s
}
参考自 Hran