li
{
text-align: left;
padding: 3px 0 0px 0px;
clear: both;
background: url(images/ico/i1_1.gif) 5px 10px no-repeat;
list-style-type: none;
}
<li>你好</li>
上面的代码在ie显示没有问题,“你好”的前面有图标,而且有间隔。但是在firefox里面图标就和“你好”重叠了。
向高手请教解决方法。。谢谢了。
{
text-align: left;
padding: 3px 0 0px 0px;
clear: both;
background: url(images/ico/i1_1.gif) 5px 10px no-repeat;
list-style-type: none;
}
<li>你好</li>
上面的代码在ie显示没有问题,“你好”的前面有图标,而且有间隔。但是在firefox里面图标就和“你好”重叠了。
向高手请教解决方法。。谢谢了。
li
{
float:left;
width:160;
text-align: left;
padding-top: 3px;
padding-left: 15px;
padding-right: 0px;
padding-bottom: 3px;
clear: both;
background: url(images/ico/i1_1.gif) 5px 10px no-repeat;
list-style-type: none;
}
缺点:li的宽度固定了。