樣式 columnCount 屬性
描述
columnCount 屬性指定了一個元素應該被分割成的列數。
瀏覽器支援
屬性 | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
語法
返回 columnCount 屬性
object.style.columnCount
設定 columnCount 屬性
object.style.columnCount = "number|auto|initial|inherit"
屬性值
值 | 描述 |
---|---|
數字 | 元素內容將流動的最佳列數 |
auto | 預設值。列數將由其他屬性決定,例如 "column-width" |
initial | 將此屬性設定為其預設值。閱讀關於 initial |
inherit | 從其父元素繼承此屬性。閱讀關於 inherit |
技術詳情
預設值 | auto |
---|---|
返回值 | 字串,表示元素的 column-count 屬性 |
CSS 版本 | CSS3 |
相關頁面
CSS3 教程:CSS3 多列布局
CSS 參考: column-count 屬性