Css-border-right-width
提供:Dev Guides
CSS-ボーダー右幅
説明
要素の右境界線の幅を設定します。
可能な値
- length -任意の長さの単位。 このプロパティの長さの単位は負ではない場合があります。
- thin -中に設定された境界線よりも細い境界線。
- medium -細い設定の境界線よりも太く、太い設定の境界線よりも細い境界線。
- thick -mediumに設定された境界線よりも厚い境界線。
に適用されます
すべてのHTML要素。
DOM構文
object.style.borderRightWidth = "2px";
例
以下は、すべての境界線の幅を表示する例です-
<html>
<head>
</head>
<body>
<p style = "border-width:4px; border-style:solid;">
This is a solid border whose width is 4px.
</p>
<p style = "border-width:4pt; border-style:solid;">
This is a solid border whose width is 4pt.
</p>
<p style = "border-width:thin; border-style:solid;">
This is a solid border whose width is thin.
</p>
<p style = "border-width:medium; border-style:solid;">
This is a solid border whose width is medium;
</p>
<p style = "border-width:thick; border-style:solid;">
This is a solid border whose width is thick.
</p>
<p style = "border-bottom-width:4px;
border-top-width:10px;
border-left-width: 2px;
border-right-width:15px;
border-style:solid;">
This is a a border with four different width.
</p>
</body>
</html>
これにより、次の結果が生成されます–