CSSborder -bottom-styleプロパティ
例
下の境界線のスタイルを設定します。
div {border-bottom-style: dotted;}
以下の「自分で試してみてください」の例をもっと見てください。
定義と使用法
border-bottom-style
プロパティは、要素の下枠のスタイルを設定します。
デフォルト値: | なし |
---|---|
遺伝性の: | いいえ |
アニメート可能: | 番号。アニメート可能について読む |
バージョン: | CSS1 |
JavaScript構文: | object .style.borderBottomStyle = "dotted" |
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
border-bottom-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
CSS構文
border-bottom-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
プロパティ値
Value | Description | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies a 3D outset border. The effect depends on the border-color value | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
その他の例
例
下の破線の境界線:
div {border-bottom-style: dashed;}
例
しっかりとした下の境界線:
div {border-bottom-style: solid;}
例
ダブルボトムボーダー:
div {border-bottom-style: double;}
例
下の境界線を削除します。
div {border-bottom-style: none;}
例
溝の下の境界線:
div {
border-bottom-style: groove;
border-bottom-color: coral;
border-bottom-width: 7px;
}
例
尾根の下部境界:
div {
border-bottom-style: ridge;
border-bottom-color: coral;
border-bottom-width: 7px;
}
例
はめ込み下の境界線:
div {
border-bottom-style: inset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
例
最初の下部境界:
div {
border-bottom-style: outset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
関連ページ
CSSチュートリアル:CSS Border
CSSリファレンス:border-bottomプロパティ
HTML DOMリファレンス: borderBottomStyleプロパティ