我有兩個要並排呈現的列表。 首先,我單獨列出的右側列表有display:inline
屬性。 列表出來, 使用display來並排顯示:inline
目標不符合,因爲右側的框顯示在左側框下方。所以,我做了左邊的盒子也是display:inline
。現在,它看起來全部碎裂狀,
我的CSS代碼是
#left, #right {
width: 400px;
display: inline;
padding: 12px 45px;
margin-bottom: 6px;
border-top: 2px solid red;
border-bottom: 1px solid gray;
border-left: thick double #ff0000;
border-right: thick double #ff0000;
}
那麼,如何顯示兩個ul tags
並排?爲什麼顯示:內聯將左框分成兩部分?
聽起來像你要找的'顯示:flex'或許'列數:2'? – thebjorn 2015-04-05 12:08:46