将列表换行 [英] Wrapping lists into columns
问题描述
我使用ColdFusion填充包含HTML列表(< ul>
的)的模板。
I'm using ColdFusion to populate a template that includes HTML lists (<ul>
's).
大多数都不是那么长,但有几个具有可笑的长度,真的可以在2-3列。
Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns.
有一个HTML ,ColdFusion或者JavaScript(我有jQuery可用)方式这样做很容易?
Is there an HTML, ColdFusion or perhaps JavaScript (I have jQuery available) way to do this easily? It's not worth some over-complicated heavy weight solution to save some scrolling.
推荐答案
因此我从A List中挖出了这篇文章 CSS Swag:多列列表。我最终使用第一个解决方案,它不是最好的,但其他人需要使用复杂的HTML,不能动态生成,或创建很多自定义类,这可以做,但需要加载的内联样式和可能是一个巨大的页面。
So I dug up this article from A List Apart CSS Swag: Multi-Column Lists. I ended up using the first solution, it's not the best but the others require either using complex HTML that can't be generated dynamically, or creating a lot of custom classes, which could be done but would require loads of in-line styling and possibly a huge page.
其他解决方案仍然欢迎。
Other solutions are still welcome though.
这篇关于将列表换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!