CSS 中的column-gap属性用于指定使用 column-count 属性划分给定文本的列之间的间隙量。
句法:
column-gap: length|normal|initial|inherit;
属性值:
- length:此值指定将设置列之间间隙的长度。
- 正常:这是默认值。此值用于指定列之间的正常间隙。
- initial :此值用于将 column-gap 属性设置为其默认值。
- inherit :该值告诉 column-gap 属性从其父级继承该属性。
例子:
The column-gap Property
GeeksforGeeks
The column-gap Property
The column-gap property defines the gap
between the columns of the element:
The course is designed for students as well as
working professionals to prepare for coding
interviews. This course is going to have coding
questions from school level to the level
needed for product based companies like Amazon,
Microsoft, Adobe, etc.
输出:
支持的浏览器: column-gap 属性支持的浏览器如下:
- 谷歌浏览器 50.0, 4.0 -webkit-
- 浏览器 10.0
- 火狐 52.0, 2.0 -moz-
- 歌剧 9.0, 3.1 -webkit-
- Safari 37.0, 15.0 -webkit