スタイルサイズ変更プロパティ
例
<div>要素のサイズを変更可能にします。
document.getElementById("myDIV").style.resize = "both";
定義と使用法
サイズ変更プロパティは、ユーザーが要素のサイズを変更できるかどうかを指定します。
注: resizeプロパティは、計算されたオーバーフロー値が「表示」以外の要素に適用されます。
ブラウザのサポート
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
構文
サイズ変更プロパティを返します。
object.style.resize
サイズ変更プロパティを設定します。
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
プロパティ値
Value | Description |
---|---|
none | Default value. The user cannot resize the element |
both | The user can adjust both the height and the width of the element |
horizontal | The user can adjust the width of the element |
vertical | The user can adjust the height of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
技術的な詳細
デフォルト値: | なし |
---|---|
戻り値: | 要素のサイズ変更プロパティを表す文字列 |
CSSバージョン | CSS3 |
関連ページ
CSSリファレンス:サイズ変更プロパティ
❮スタイルオブジェクト