<meta charset="utf-8">
<style type="text/css">
.tip{
padding: 5px 10px;
margin-left: 15px;
border:1px solid #f8d19f;
border-radius: 3px;
background-color: #fdfbb8;
color:#d07807;
font-size:12px;
position: absolute;
display: block;
}
.tip:before, .tip:after{
content: attr(data-content);
font-family: xms;
position: absolute; }
.tip:before{
color: :#f8d19f;
left: -10px;
}
.tip:after{
color:#fdfbb8;
left: -8px;
} </style> <span id="tip" class="tip" data-content="◀">这是一个小tips提示</span>
相关文章
- CSS中伪类及伪元素用法详解
- CSS的伪元素和伪类
- CSS 属性 :before && :after的用法,伪类和伪元素的区别
- CSS伪类对象before和after的用法
- CSS中伪类:after的用法
- 【:before与:after】css的伪类与伪元素
- css3结构伪类选择器first-child,last-child,nth-child(),nth-last-child(),only-child
- css3伪类选择器nth-of-type,:nth-last-of-type,:first-of-type,:last-of-type,:only-of-type
- python 全栈开发,Day47(行级块级标签,高级选择器,属性选择器,伪类选择器,伪元素选择器,css的继承性和层叠性,层叠性权重相同处理,盒模型,padding,border,margin)
- css伪类选择器及伪元素选择器