不同字符会导致空的不到位 具体看图
以下为设置的css
.d1-2 ul{
list-style-image: url(../img/background.png);
clear: both;
font-size: 14px;
color: #e58100;
}
.d1-2 li{
margin-left: 40px;
margin-right: 80px;
text-align:center;
}
不同字符会导致空的不到位 具体看图
以下为设置的css
.d1-2 ul{
list-style-image: url(../img/background.png);
clear: both;
font-size: 14px;
color: #e58100;
}
.d1-2 li{
margin-left: 40px;
margin-right: 80px;
text-align:center;
}
首先需要给每一个li添加固定宽度,可以用%;
textaline不能为center,因为字符的长度不一样,可以改为start或者end