# column-rule
**版本:CSS3**
繼承性:無
### 語法:
**column-rule**:*<length>* | *<style>* | *<color>*
**相關屬性**:[column-rule-width](# "column-rule-width") , [column-rule-style](# "column-rule-style") , [column-rule-color](# "column-rule-color")
### 取值:
*column-rule-width*:請參閱 [column-rule-width](# "column-rule-width") 屬性*column-rule-style*:請參閱 [column-rule-style](# "column-rule-style") 屬性*column-rule-color*:請參閱 [column-rule-color](# "column-rule-style") 屬性
### 說明:
1. 定義每欄之間邊框的寬度,樣式和顏色。
| 引擎類型 | Gecko | Webkit | Presto |
|-----|-----|-----|-----|
| column-rule | -moz-column-rule | -webkit-column-rule | ? |
| ? | ? | ? | ? |
### 兼容性:
<table><thead><tr><th class="type">類型</th> <th class="type_ie"><img src="https://box.kancloud.cn/2015-09-02_55e5d38b16ccb.png" alt="IE" />Internet Explorer</th> <th class="type_firefox"><img src="https://box.kancloud.cn/2015-09-02_55e5d38b1fad7.png" alt="Firefox" />Firefox</th> <th class="type_chrome"><img src="https://box.kancloud.cn/2015-09-02_55e5d38b26e82.png" alt="Chrome" />Chrome</th> <th class="type_opera"><img src="https://box.kancloud.cn/2015-09-02_55e5d38b2e8a7.png" alt="Opera" />Opera</th> <th class="type_safari"><img src="https://box.kancloud.cn/2015-09-02_55e5d38b36982.png" alt="Safari" />Safari</th> </tr></thead><tbody><tr><td rowspan="4" class="version">版本</td> <td class="support no"><span>(×)</span>IE6</td> <td class="support no"><span>(×)</span>Firefox 2.0</td> <td class="support yes"><span>(√)</span>Chrome 1.0.x</td> <td class="support no"><span>(×)</span>Opera 9.63</td> <td class="support yes"><span>(√)</span>Safari 3.1</td> </tr><tr><td class="support no"><span>(×)</span>IE7</td> <td class="support no"><span>(×)</span>Firefox 3.0</td> <td class="support yes"><span>(√)</span>Chrome 2.0.x</td> <td></td> <td class="support yes"><span>(√)</span>Safari 4</td> </tr><tr><td class="support no"><span>(x)</span>IE8</td> <td class="support yes"><span>(√)</span>Firefox 3.5</td> <td>?</td> <td>?</td> <td>?</td> </tr><tr><td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr></tbody></table>
### 示例:

例子里-webkit-column-count:5;的意思一共5列, -webkit-column-gap:60px;每列的間隔是60px,
-webkit-column-rule:5px dashed #DCDCDC;的意思是每列之間有5像素虛線灰色邊框。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="utf-8" /><meta name="robots" content="all" /><meta name="author" content="Tencent-ISRD" /><meta name="Copyright" content="Tencent" /><style type="text/css" media="screen"><!--.wrapper {width:703px; padding:10px; margin:40px auto 0; border:1px solid #333333;}.wrapper .inner { padding:5px 10px;}.wrapper .inner h2 {color:#333333; background:#DCDCDC; padding:5px 8px;}.wrapper .inner .cont {color:#333333; font-size:14px; line-height:180%; text-indent:2em;}.wrapper .inner .cont p {margin-bottom:15px; line-height:180%;}.wrapper .inner .cont .column-rule {-webkit-column-count:5;-moz-column-count:5; -webkit-column-gap:60px;-moz-column-gap:60px; -webkit-column-rule:5px dashed #DCDCDC;-moz-column-rule:5px dashed #DCDCDC;}--></style><title>column-rule</title></head><body><div class="wrapper"> <div class="inner"> <h2>column-rule</h2> <div class="cont"> <div class="column-rule"> <p><strong>ISD Webteam</strong>是一個設計團隊,即<strong>騰訊互聯網業務系統網站組</strong>。</p> <p><strong>ISD Webteam</strong>關注于網站產品的體驗設計,包括網站的可用性、視覺風格以及網頁重構。</p> <p>我們的產品類型挺豐富,有<strong>空間(Qzone)</strong>,有<strong>會員(QQVIP)</strong>,有<strong>QQ秀(QQShow)</strong>,還有<strong>音樂(QQMusic)</strong>,項目挺多,工作也挺忙,無時無刻不在體現互聯網行業的特征。</p> <p>我們的成員類型挺豐富,有安靜的,有狂躁的,有智勇雙全的,也有身can志不堅的,總體上還算相親相愛,偶爾也會你打我鬧。</p> <p><strong>“讓我們的互聯網服務像水和電一樣融入到人們的生活當中”</strong>,是我們的夢想,距離目標還有很長的路要走,至今我們仍在不懈的努力,如果你愿意,歡迎和我們一起。</p> </div> </div> </div></div></body></html>
復制代碼
Copyright ? 2009 [Tencent ISD webteam](http://webteam.tencent.com/). All Rights Reserved
### 快速跳轉
- [語法](# "跳轉到“語法”")
- [取值](# "跳轉到“取值”")
- [說明](# "跳轉到“說明”")
- [兼容性](# "跳轉到“兼容性”")
- [示例](# "跳轉到“示例”")
- CSS3 Properties
- 邊框(Border)
- Border-color
- Border-image
- Border-radius
- box-shadow
- 背景(Background)
- background-origin
- background-clip
- Background-size
- Multiple backgrounds
- 顏色(Color)
- HSL colors
- HSLA colors
- opacity
- RGBA colors
- 文本(Text effects)
- text-shadow
- text-overflow
- word-wrap
- 用戶界面(User-interface)
- box-sizing
- resize
- outline
- outline-width
- outline-style
- outline-offset
- outline-color
- nav-index
- nav-up
- nav-right
- nav-down
- nav-left
- 基礎盒模型(Basic box model)
- overflow
- overflow-x
- overflow-y
- 內容(Generated Content)
- content
- 其它模塊(Other modules)
- media queries
- Speech
- columns
- column-width
- column-span
- column-rule
- column-rule-color
- column-rule-width
- column-rule-style
- column-gap
- column-fill
- column-count
- column-break-before
- column-break-after
- @font-face
- 選擇器(selectors)
- 子串匹配的屬性選擇符 E[att^="val"]
- 子串匹配的屬性選擇符 E[att$="val"]
- 子串匹配的屬性選擇符 E[att*="val"]
- 結構性偽類 E:root
- 結構性偽類 E:nth-child(n)
- 結構性偽類 E:nth-last-child(n)
- 結構性偽類 E:nth-of-type(n)
- 結構性偽類 E:nth-last-of-type(n)
- 結構性偽類 E:last-child
- 結構性偽類 E:first-of-type
- 結構性偽類 E:only-child
- 結構性偽類 E:only-of-type
- 結構性偽類 E:empty
- UI元素狀態偽類 E:checked
- UI元素狀態偽類 E:enabled
- UI元素狀態偽類 E:disabled
- UI元素狀態偽類 E::selection
- 否定偽類 E:not(s)
- 目標偽類 E:target
- 通用兄弟元素選擇器 E ~ F