Style columnCount 屬性
- 上一頁 color
- 下一頁 columnFill
- 返回上一層 HTML DOM Style 對象
語法
返回 columnCount 屬性:
object.style.columnCount
設置 columnCount 屬性:
object.style.columnCount = "number|auto|initial|inherit"
屬性值
值 | 描述 |
---|---|
number | 元素內容將被劃分的最佳列數。 |
auto | 默認值。由其他屬性決定列數,比如 "column-width"。 |
initial | 將此屬性設置為其默認值。請參閱 initial。 |
inherit | 從其父元素繼承此屬性。請參閱 inherit。 |
技術細節
默認值: | auto |
---|---|
返回值: | 字符串,表示元素的 column-count 屬性。 |
CSS 版本: | CSS3 |
瀏覽器支持
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
- 上一頁 color
- 下一頁 columnFill
- 返回上一層 HTML DOM Style 對象