Gaya mengubah ukuran Properti
Contoh
Buat elemen <div> dapat diubah ukurannya:
document.getElementById("myDIV").style.resize = "both";
Definisi dan Penggunaan
Properti resize menentukan apakah suatu elemen dapat diubah ukurannya oleh pengguna atau tidak.
Catatan: Properti ubah ukuran berlaku untuk elemen yang nilai luapannya yang dihitung adalah sesuatu selain "terlihat".
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Sintaksis
Kembalikan properti ubah ukuran:
object.style.resize
Setel properti ubah ukuran:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | tidak ada |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti pengubahan ukuran suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: ubah ukuran properti
Objek Gaya