We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

这篇翻译不完整。请帮忙从英语翻译这篇文章

概述

CSS 属性column-span 的值被设置为all时,可以让一个元素跨越所有的列。一个跨越多列的元素被称为spanning element。

初始值none
适用元素in-flow block-level elements
是否是继承属性
适用媒体visual
计算值as specified
Animation typediscrete
正规顺序per grammar

语法

Formal syntax: none | all
column-span: none;
column-span: all;

column-span: inherit;

取值

none
元素不跨多个列。
all
元素横跨所有列。元素出现之前,出现在元素之前的正常流中的内容在所有列之间自动平衡。该元素建立一个新的块格式上下文。

例子

h1, h2 {
  column-span: all;
}

规范

Specification Status Comment
CSS Multi-column Layout Module
column-width
Working Draft  

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes)-webkit 未实现 10 11.1+ (Yes)-webkit
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes)-webkit (Yes)-webkit 未实现 ? 11.1+ (Yes)-webkit

文档标签和贡献者

此页面的贡献者: DPJune, fscholz, Sebastianz, FredWe
最后编辑者: DPJune,