“Css3 pr column gap”的版本间差异

本页内容
(创建页面,内容为“{{DISPLAYTITLE:column-gap}}3 = CSS3 column-gap 属性 = 指定列之间的的间隙为 40 个像素: <sample title="" desc="" lang="html" hererun="1"> div { column-gap: 40px; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> .newspaper { column-count:3; column-gap:40px; } </style> </head> <body> <div class="newspaper"> 当我年轻…”)
 
Neo讨论 | 贡献
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
{{DISPLAYTITLE:column-gap}}[[Category:css3 multiple columns|3]]
{{DISPLAYTITLE:column-gap}}[[Category:css reference|151]]
= CSS3 column-gap 属性 =
= CSS3 column-gap 属性 =


第38行: 第38行:
{| class="table table-striped table-hover"
{| class="table table-striped table-hover"
! 属性
! 属性
!
! Chrome
!
! Internet Explorer / Edge
!
! Firefox
!
! Safari
!
! Opera
|-
|-
| column-gap
| column-gap

2022年8月19日 (五) 04:46的最新版本

CSS3 column-gap 属性

指定列之间的的间隙为 40 个像素:


示例

div {
  column-gap: 40px;
}

在此页底部有更多的例子。

浏览器支持

属性 Chrome Internet Explorer / Edge Firefox Safari Opera
column-gap 50.04.0 -webkit- 10.0 2.0 -moz- 9.03.1 -webkit- 37.015.0 -webkit11.1

属性定义及使用说明

column-gap 的属性指定的列之间的间隙。

注意: 如果指定了列之间的距离规则,它会取平均值。

默认值: normal
继承: no
版本: CSS3
JavaScript 语法: object.style.columnGap="40px"

语法

column-gap: length|normal;
描述
length 一个指定的长度,将设置列之间的差距
normal 指定一个列之间的普通差距。 W3C建议1EM值

更多实例

Column-count div 元素的文本分成三列。

Column-rule 指定列之间的规则:宽度,样式和颜色。

相关文章

CSS 教程: CSS 多列

CSS 教程: CSS 网格布局

CSS 参考手册: row-gap 属性

CSS 参考手册: gap 属性

HTML DOM 参考手册: columnGap 属性

此页面最后编辑于2022年8月19日 (星期五) 04:46。