比如说ul的width:1000px;一共三个li不使像素调能让它铺满吗?
3 回答
hood
TA贡献1条经验 获得超1个赞
用百分比?
*{
margin:0;
padding:0;
}
ul{
list-style: none;
width: 1000px;
background-color: blue;
}
li{
float:left;
width: 33%;
background-color: red;
text-align: center;
}
a{
text-decoration: none;
background-color: yellow;
}
- 3 回答
- 0 关注
- 6663 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消