Styl verander grootte Eiendom
Voorbeeld
Maak 'n <div> element veranderbaar:
document.getElementById("myDIV").style.resize = "both";
Definisie en gebruik
Die resize-eienskap spesifiseer of 'n element deur die gebruiker verander kan word of nie.
Let wel: Die resize-eienskap is van toepassing op elemente waarvan die berekende oorloopwaarde iets anders as "sigbaar" is.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Sintaksis
Gee die resize-eienskap terug:
object.style.resize
Stel die resize-eienskap:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | geen |
---|---|
Terugkeerwaarde: | 'n String, wat die resize-eienskap van 'n element verteenwoordig |
CSS weergawe | CSS3 |
Verwante bladsye
CSS-verwysing: verander die grootte van eiendom
❮ Stylvoorwerp