--- title: column-count slug: Web/CSS/column-count tags: - CSS3 Multiple column layout - CSS3多列布局 translation_of: Web/CSS/column-count ---
column-count CSS属性,描述元素的列数。
column-count: 3;
column-count: auto;
column-count: inherit;
column-count: initial;
column-count: unset;
{{cssinfo}}
auto
<number>
.content-box { border: 10px solid #000000; column-count:3; }
Specification | Status | Comment |
---|---|---|
{{SpecName('CSS3 Multicol', '#column-count', 'column-count')}} | {{Spec2('CSS3 Multicol')}} |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}}{{property_prefix('-webkit')}} | {{compatGeckoDesktop("1.8")}}{{property_prefix('-moz')}} | 10 | 11.1 | 3.0 (522){{property_prefix('-webkit')}} |
on display: table-caption |
{{CompatVersionUnknown}} | {{compatGeckoDesktop("37")}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{compatGeckoMobile("1.8")}}{{property_prefix('-moz')}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
on display: table-caption |
{{CompatVersionUnknown}} | {{compatGeckoMobile("37")}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
https://www.w3.org/TR/css3-multicol/
https://caniuse.com/#search=column