浮动+清除浮动

将图片一转换成图片二:
<label style="color : #fff; float:left;background-color:#5cb85c; border: 3px solid #5cb85c; font-weight:normal; width: auto; max-width:none; font-size : 12px; font-family:微软雅黑; ">编号</label>
<!---->
<div style="line-height:20px;font-size:12px; padding-left: 48px;">
<span style="color:#00c;">名称</span>&nbsp;
<a href="" class='btn btn-success btn-xs' style="float: right">查看</a>
</div>
<div style="clear:both; height: 0px;"></div>

图片一:

图片二:

posted @ 2017-02-15 11:57  py卡卡  阅读(178)  评论(0编辑  收藏  举报