2014-02-20 38 views

回答

6
#settingNev li { 
    display: block; 
    margin: 0; 
    padding: 0; 
    clear:both; 
} 

明確添加到都顯示爲列表

0

如果你不想水平方式列表中,請不要使用向左飄浮;

0

清除浮動是答案中使用clear:both;或者overflow:hidden

#settingNev li { 
    overflow:hidden  /*Add this to the make li in flow*/ 
    display: block; 
    margin: 0; 
    padding: 0; 

} 

欲瞭解更多詳細信息,請參閱This

0

刪除float: left;我添加下面的補丁你的CSS 。

#settingNev ul { 
    display:table !important;  
} 

#settingNev ul li { 
    display:table-row !important; 
} 

這裏是整個代碼隊友:

http://jsfiddle.net/w5tZ3/9/