CSS3 column-gap 灞炴


瀹炰緥

鎸囧畾鍒椾箣闂寸殑40涓儚绱犵殑宸窛锛

div
{
column-gap:40px;
-moz-column-gap:40px; /* Firefox */
-webkit-column-gap:40px; /* Safari and Chrome */
}

灏濊瘯涓涓 禄
鍦ㄦ椤靛簳閮ㄦ湁鏇村鐨勪緥瀛愩

娴忚鍣ㄦ敮鎸

灞炴
column-gap 50.0
4.0 -webkit-
10.0 2.0 -moz- 9.0
3.1 -webkit-
37.0
15.0 -webkit
11.1

灞炴у畾涔夊強浣跨敤璇存槑

网易彩票手机版快三—官方网址22270.COMcolumn-gap鐨勫睘鎬ф寚瀹氱殑鍒椾箣闂寸殑宸窛銆

娉ㄦ剰锛 濡傛灉鎸囧畾浜嗗垪涔嬮棿鐨勮窛绂昏鍒欙紝瀹冧細鍙栧钩鍧囧笺

榛樿鍊: normal
缁ф壙: no
鐗堟湰: CSS3
JavaScript 璇硶: object.style.columnGap="40px"


璇硶

column-gap: length|normal;

鎻忚堪
length 涓涓寚瀹氱殑闀垮害锛屽皢璁剧疆鍒椾箣闂寸殑宸窛
normal 鎸囧畾涓涓垪涔嬮棿鐨勬櫘閫氬樊璺濄 W3C寤鸿1EM鍊


Examples

鏇村瀹炰緥

Column-count
div鍏冪礌鐨勬枃鏈垎鎴愪笁鍒椼

Column-rule
鎸囧畾鍒椾箣闂寸殑瑙勫垯锛氬搴︼紝鏍峰紡鍜岄鑹层


鐩稿叧鏂囩珷

CSS3 鏁欑▼: CSS3 Multiple Columns