css 自定义悬浮窗写法

时间:2020-12-01 12:24:49   收藏:0   阅读:10

HTML:

css(sass):

复制代码
.info {
}
&:hover::after {
content: attr(data-title);
display: inline-block;
width: 70px;
height: 22px;
border: 1px solid #0088d8;
font-size: 14px;
font-family: FZLanTingHeiS-R-GB;
font-weight: 400;
color: #00d2ff;
margin-top: 30px;
line-height: 22px;
text-align: center;
margin-left: -20px;
}
}

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!