CSS の column-rule-style
プロパティは、段組みレイアウトで段の間に引かれる線 (段間罫) のスタイルを設定します。
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 https://github.com/mdn/interactive-examples をクローンしてプルリクエストを送信してください。
構文
/* <'border-style'> の値 */
column-rule-style: none;
column-rule-style: hidden;
column-rule-style: dotted;
column-rule-style: dashed;
column-rule-style: solid;
column-rule-style: double;
column-rule-style: groove;
column-rule-style: ridge;
column-rule-style: inset;
column-rule-style: outset;
/* グローバル値 */
column-rule-style: inherit;
column-rule-style: initial;
column-rule-style: unset;
column-rule-style
プロパティは、単一の <'border-style'>
値で指定します。
値
<'border-style'>
border-style
で定義されているキーワードで、段間罫のスタイルを指定します。スタイルは collasped の境界線モデルで解釈されます。
形式文法
例
HTML
<p>This is a bunch of text split into three columns.
The `column-rule-style` property is used to change
the style of the line that is drawn between columns.
Don't you think that's wonderful?</p>
CSS
p {
column-count: 3;
column-rule-style: dashed;
}
結果
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
CSS Multi-column Layout Module column-rule-style の定義 |
草案 | 初回定義 |
初期値 | none |
---|---|
適用対象 | 段組み要素 |
継承 | なし |
計算値 | 指定通り |
アニメーションの種類 | 離散値 |
ブラウザーの対応
BCD tables only load in the browser
このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 https://github.com/mdn/browser-compat-data をチェックアウトしてプルリクエストを送信してください。