Vlastnost pro změnu velikosti stylu
Příklad
Změňte velikost prvku <div>:
document.getElementById("myDIV").style.resize = "both";
Definice a použití
Vlastnost resize určuje, zda může uživatel měnit velikost prvku.
Poznámka: Vlastnost resize se vztahuje na prvky, jejichž vypočítaná hodnota přetečení je jiná než "viditelné".
Podpora prohlížeče
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Syntax
Vraťte vlastnost resize:
object.style.resize
Nastavte vlastnost resize:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | žádný |
---|---|
Návratová hodnota: | Řetězec představující vlastnost resize prvku |
Verze CSS | CSS3 |
Související stránky
CSS reference: vlastnost resize
❮ Objekt stylu