.icon-document { background-image: url(../image/document.png); display:block; float: left; width: 25px; height: 21px; }
需要注意的地方:1.确保路径正确;
2.成块显示;
3.指定宽高。
.icon-document { background-image: url(../image/document.png); display:block; float: left; width: 25px; height: 21px; }
需要注意的地方:1.确保路径正确;
2.成块显示;
3.指定宽高。
转载于:https://www.cnblogs.com/lingluo2017/p/6785666.html