<div class="cn_header">
<div class="print"></div>
example
</div>
.cn_header{
background: #C2E1FF;
height: 24px;
line-height: 24px;
padding: 5px;
}
.print{
background: url(http://mcgrefer.com/images/search.png);
display: inline-block;
height: 24px;
width: 24px;
}
http://jsfiddle.net/Luntegg/2SCvf/1/
如何使用背景图像和文本设置内联 div?