CSS列ルールスタイルのプロパティ
例
列間のルールのスタイルを指定します。
div
{
column-rule-style: dotted;
}
以下の「自分で試してみてください」の例をもっと見てください。
定義と使用法
column-rule-style
プロパティは、列間のルールのスタイルを指定します。
デフォルト値: | なし |
---|---|
遺伝性の: | いいえ |
アニメート可能: | 番号。アニメート可能について読む |
バージョン: | CSS3 |
JavaScript構文: | object .style.columnRuleStyle = "dotted" |
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
数字の後に-webkit-または-moz-が続く場合は、プレフィックスを使用して機能した最初のバージョンを指定します。
Property | |||||
---|---|---|---|---|---|
column-rule-style | 50.0 4.0 -webkit- |
10.0 | 52.0 2.0 -moz- |
9.0 3.1 -webkit- |
37.0 15.0 -webkit 11.1 |
CSS構文
column-rule-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
プロパティ値
Value | Description | Play it |
---|---|---|
none | Default value. Defines no rule | |
hidden | Defines a hidden rule | |
dotted | Defines a dotted rule | |
dashed | Defines a dashed rule | |
solid | Defines a solid rule | |
double | Defines a double rule | |
groove | Specifies a 3D grooved rule. The effect depends on the width and color values | |
ridge | Specifies a 3D ridged rule. The effect depends on the width and color values | |
inset | Specifies a 3D inset rule. The effect depends on the width and color values | |
outset | Specifies a 3D outset rule. The effect depends on the width and color values | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
その他の例
例
<div>要素のテキストを3つの列に分割します。
div
{
column-count: 3;
}
例
列間に40ピクセルのギャップを指定します。
div
{
column-gap: 40px;
}
例
列間のルールの幅、スタイル、および色を指定します。
div
{
column-rule: 4px double #ff00ff;
}
関連ページ
CSSチュートリアル:CSS複数列
HTML DOMリファレンス:columnRuleStyleプロパティ