Propriété de redimensionnement du style
Exemple
Rendez un élément <div> redimensionnable :
document.getElementById("myDIV").style.resize = "both";
Définition et utilisation
La propriété resize spécifie si un élément est redimensionnable ou non par l'utilisateur.
Remarque : La propriété resize s'applique aux éléments dont la valeur de débordement calculée est autre que "visible".
Prise en charge du navigateur
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Syntaxe
Renvoyez la propriété resize :
object.style.resize
Définissez la propriété resize :
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Valeurs de propriété
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 |
Détails techniques
Valeur par défaut: | rien |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété de redimensionnement d'un élément |
Version CSS | CSS3 |
Pages connexes
Référence CSS : propriété de redimensionnement
❮ Objet de style