Style resize attribute
- Προηγούμενη Σελίδα quotes
- Επόμενη Σελίδα δεξί
- Επιστροφή στο Πάνω Σχέδιο Όντομο Style του HTML DOM
Definition and Usage
resize
This attribute specifies whether the element can be resized by the user.
Note:resize
This attribute applies when the calculated overflow value is not "visible"
elements.
See also:
CSS Reference Manual:resize attribute
Example
Make the <div> element resizable:
document.getElementById("myDIV").style.resize = "both";
Syntax
Return resize attribute:
object.style.resize
Set resize attribute:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Attribute value
Value | Description |
---|---|
none | Default value. The user cannot adjust the size of the element. |
both | The user can adjust both the height and 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 | This attribute sets this property to its default value. See initial. |
inherit | This attribute inherits from its parent element. See inherit. |
Technical details
Default value: | None |
---|---|
Return value: | string that represents the element's resize attribute. |
CSS Version: | CSS3 |
Υποστήριξη Περιηγητών
Τα αριθμήματα στη διάταξη υποδεικνύουν την έκδοση του πρώτου περιηγητή που υποστηρίζει αυτή την ιδιότητα.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Υποστήριξη | 79.0 | Υποστήριξη | Υποστήριξη | 15.0 |
- Προηγούμενη Σελίδα quotes
- Επόμενη Σελίδα δεξί
- Επιστροφή στο Πάνω Σχέδιο Όντομο Style του HTML DOM