CSS Multi-column Layout - CSS: Cascading Style Sheets 编辑

CSS Multi-column Layout is a module of CSS that adds support for multi-column layouts. Support is included for establishing the number of columns in a layout, as well as how content should flow from column to column, gap sizes between columns, and column dividing lines (known as column rules) along with their appearance.

Basic example

In the following example the column-count property has been applied to the element with a class of container. As the value of column-count is 3, the content is arranged into 3 columns of equal size.

Relationship to Fragmentation

Multiple-column Layout is closely related to Paged Media, in that each column box becomes a fragment, much like a printed page becomes a fragment of an overall document. Therefore the properties now defined in the CSS Fragmentation specification are required in order to control how content breaks between columns. 

Reference

Multiple-column Layout Properties

Guides

Basic Concepts of Multicol
An overview of the Multiple-column Layout specification
Styling Columns
How to use column rules and manage the spacing between columns.
Spanning and Balancing
How to make elements span across all columns and controlling the way columns are filled.
Handling Overflow in Multicol
What happens when an item overflows the column it is in and what happens when there is too much columned content to fit a container.
Content Breaks in Multicol
Introduction to the Fragmentation specification and how to control where column content breaks.

Specifications

SpecificationStatusComment
CSS Multi-column Layout ModuleWorking DraftInitial definition

See also

Other CSS layout technologies include:

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:102 次

字数:5376

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文