column-gap

column-gap是用來設定或檢索對象的列與列之間的間隙的套用。

簡介,語法,取值,說明,寫法,示例,

簡介

column-gap

語法

column-gap: | normal
默認值:normal

取值

<length>:
用長度值來定義列與列之間的間隙。不允許負值
normal:
與font-size大小相同。假設該對象的font-size為16px,則normal值為16px,類推。

說明

設定或檢索對象的列與列之間的間隙
對應的腳本特性為columnGap

寫法

核心類型寫法
Webkit(Chrome/Safari)-webkit-column-gap
Gecko(Firefox)-moz-column-gap
Presto(Opera)column-gap
Trident(IE)column-gap
W3Ccolumn-gap

示例

font - size為14px時,列間隙column - gap: normal的計算值也為14px This module describes multi - column layout in CSS. By using functionality described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns.On the Web, tables have also been used to describe multi - column layouts.The main benefit of using CSS - based columns is flexibility; content can flow from one column to another, and the number of columns can vary depending on the size of the viewport.Removing presentation table markup from documents allows them to more easily be presented on various output devices including speech synthesizers and small mobile devices.固定列間隙為40px: This module describes multi - column layout in CSS. By using functionality described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns.On the Web, tables have also been used to describe multi - column layouts.The main benefit of using CSS - based columns is flexibility; content can flow from one column to another, and the number of columns can vary depending on the size of the viewport.Removing presentation table markup from documents allows them to more easily be presented on various output devices including speech synthesizers and small mobile devices.

相關詞條

熱門詞條

聯絡我們