这篇翻译不完整。请帮忙从英语翻译这篇文章。
概述
The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
| 初始值 | none |
|---|---|
| 适用元素 | in-flow block-level elements |
| 是否是继承属性 | 否 |
| 适用媒体 | visual |
| 计算值 | as specified |
| 是否适用于 CSS 动画 | 否 |
| 正规顺序 | the unique non-ambiguous order defined by the formal grammar |
语法
Formal syntax: none | all
column-span: none; column-span: all; column-span: inherit;
取值
none- The element does not span multiple columns.
all- The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appears. The element establishes a new block formatting context.
例子
h1, h2 {
column-span: all;
}
规范
| Specification | Status | Comment |
|---|---|---|
| CSS Multi-column Layout Module column-width |
Candidate Recommendation |