Css-border-bottom
提供:Dev Guides
CSS-ボーダーボトム
説明
要素の下の境界線を設定します。 valueは、色、border-bottom-widthの値、およびborder-styleの値の1つ以上です。
可能な値
可能な値は、色、border-widthの値、border-styleの値の1つ以上です。
に適用されます
すべてのHTML要素。
DOM構文
object.style.borderBottom = "2px solid red";
例
border-bottomプロパティを使用すると、1つのプロパティでボトムラインの色、スタイル、幅を指定できます-
以下は、3つのプロパティすべてを使用して1つのプロパティにする例を示す例です。
<html>
<head>
</head>
<body>
<p style = "border-bottom:4px solid red;">
This example is showing shorthand property for border-bottom.
</p>
</body>
</html>
それは次の結果を生成します-