शैली का आकार बदलें संपत्ति
उदाहरण
एक <div> तत्व को आकार बदलने योग्य बनाएं:
document.getElementById("myDIV").style.resize = "both";
परिभाषा और उपयोग
आकार बदलें संपत्ति निर्दिष्ट करती है कि उपयोगकर्ता द्वारा कोई तत्व आकार बदलने योग्य है या नहीं।
नोट: आकार बदलें संपत्ति उन तत्वों पर लागू होती है जिनकी गणना की गई अतिप्रवाह मान "दृश्यमान" के अलावा कुछ और है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
वाक्य - विन्यास
आकार बदलें संपत्ति वापस करें:
object.style.resize
आकार बदलें संपत्ति सेट करें:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
सम्पत्ति की कीमत
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 |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, एक तत्व की आकार बदलने की संपत्ति का प्रतिनिधित्व करता है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
सीएसएस संदर्भ: संपत्ति का आकार बदलें
❮ स्टाइल ऑब्जेक्ट