Właściwość zmiany rozmiaru stylu
Przykład
Zmień rozmiar elementu <div>:
document.getElementById("myDIV").style.resize = "both";
Definicja i użycie
Właściwość resize określa, czy użytkownik może zmienić rozmiar elementu.
Uwaga: Właściwość resize dotyczy elementów, których obliczona wartość przepełnienia jest inna niż „widoczny”.
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Składnia
Zwróć właściwość zmiany rozmiaru:
object.style.resize
Ustaw właściwość zmiany rozmiaru:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Wartości nieruchomości
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 |
Szczegóły techniczne
Domyślna wartość: | Żaden |
---|---|
Wartość zwrotu: | String, reprezentujący właściwość zmiany rozmiaru elementu |
Wersja CSS | CSS3 |
Powiązane strony
Odniesienie CSS: zmiana rozmiaru właściwości
❮ Obiekt stylu