比如說ul的width:1000px;一共三個li不使像素調能讓它鋪滿嗎?
怎么讓li鋪滿ul?
qq_______赤堇_04130325
2016-11-24 20:33:23
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;
? ? }
舉報