Questions tagged «css-multicolumn-layout»

17
如何防止元素内的列中断?
考虑以下HTML: <div class='x'> <ul> <li>Number one</li> <li>Number two</li> <li>Number three</li> <li>Number four is a bit longer</li> <li>Number five</li> </ul> </div> 和以下CSS: .x { -moz-column-count: 3; column-count: 3; width: 30em; } 就目前而言,Firefox呈现的内容与以下类似: • Number one • Number three bit longer • Number two • Number four is a • Number five …

15
如何在两列中显示无序列表?
使用以下HTML,将列表显示为两列的最简单方法是什么? <ul> <li>A</li> <li>B</li> <li>C</li> <li>D</li> <li>E</li> </ul> 所需显示: A B C D E 该解决方案必须能够在Internet Explorer上运行。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.