我想实现这种布局
<div class="rule">
<h5><b class="tip">1</b>我是活动说明我是活动说明我是活动说明我是活动说明我是活动说明我是活动说明</h5>
<h5><b class="tip">2</b>我是活动说明我是活动说明我是</h5>
</div>
.rule{
width:200px;
}
.rule h5{
color: #326a9e;
margin-bottom: 0.5em;
font-size:14px;
}
.tip{
background-color:#326a9e;
border-radius: 100%;
color: #fff;
font-size: 12px;
display: inline-block;
margin-right: 1px;
width:16px;
height:16px;
font-weight: normal;
text-align: center;
vertical-align:middle;
}
尝试使用text-indent
,但是效果不好。
这种布局的实现方式有很多种,下面来说一下常用的几种方式:
第一种:
第二种
第三种
以上三种方式是工作中最常用的三种方式,望采纳!
另外附上我的文章地址:http://www.qdfuns.com/notes/3...