HTMLDOMスタイルborderBottomRightRadiusプロパティ
borderBottomRightRadiusプロパティは、要素の右下の境界線に丸みを帯びた角を追加したり、測定値を取得したりするために使用されます。
構文
以下は、-
の構文です。borderBottomRightRadiusプロパティの取得-
object.style.borderBottomRightRadius = "length|% [length|%]|initial|inherit"
プロパティ値は次のように説明されます-
値
| Sr.No | 値と説明 |
|---|---|
| 1 | 長さ 右下隅の形状を定義するため |
| 2 | % 右下隅の形状をパーセンテージで定義します。 |
| 3 | 初期 このプロパティを初期値に設定します。 |
| 4 | 継承 親プロパティ値を継承するには |
例
borderBottomRightRadiusプロパティの例を見てみましょう-
<!DOCTYPE html>
<html>
<head>
<style>
#DIV1{
height: 100px;
width: 200px;
border: 10px groove orange;
padding: 10px;
border-bottom-right-radius: 240px 90px;
}
</style>
<script>
function changeBottomBorder(){
document.getElementById("DIV1").style.borderBottomRightRadius="90px 50px";
document.getElementById("Sample").innerHTML="The bottom border right radius is now decreased";
}
</script>
</head>
<body>
<div id="DIV1">SOME SAMPLE TEXT</div>
<p>Change the above image bottom right border size by clicking the below button</p>
<button onclick="changeBottomBorder()">Change Bottom Border</button>
<p id="Sample"></p>
</body>
</html> 出力
これにより、次の出力が生成されます-
「下の境界線を変更」ボタンをクリックすると-
-
HTMLDOMスタイルtransformOriginプロパティ
HTML DOMスタイルのtransformOriginプロパティは、2Dまたは3D変換を返し、HTMLドキュメントの要素に適用します。 構文 以下は構文です- transformOriginを返す object.style.transformOrigin transformOriginの変更 object.style.transformOrigin = “value” 値 ここで、値は-になります。 値 説明 継承 このプロパティ値は親要素から継承されます。 初期 このプロパティ値をデフォルト値に設定します。 x軸y軸z軸 ビュー
-
HTMLDOMスタイルborderBottomLeftRadiusプロパティ
borderBottomLeftRadiusは、要素の右下の境界線に丸みを帯びた角を追加するために使用されます。左下隅に境界線の形状を設定して取得できます。 構文 以下は、-の構文です。 borderBottomLeftRadiusプロパティの設定- object.style.borderBottomLeftRadius = "length|% [length|%]|initial|inherit" 値 プロパティ値は次のように説明されます- Sr.No 値と説明 1 長さ 左下隅の形状を定義するため 2 % 左下隅の形状をパー