HTML列表元素从上到下,然后从左到右 [英] HTML list elements top to bottom, then left to right

查看:221
本文介绍了HTML列表元素从上到下,然后从左到右的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做一大堆项目的列表。高度是固定的。所以当列表击中底部,我想要它包围和开始一个新的列。有没有办法,不知道每个项目的高度,在css这样做?

I want to do a list of a bunch of items. The height is fixed. So when the list hits the bottom, I want it to wrap around and start a new column. Is there a way, without knowing the height of each item, to do this in css? That way the overflow will occur horizontally.

推荐答案

您可以使用CSS3列。

You could use CSS3 columns.

这是一个小提琴:小提琴,这里是 WC3规格

Here's a fiddle: fiddle and here's the WC3 spec

这篇关于HTML列表元素从上到下,然后从左到右的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆