शैली पृष्ठभूमिक्लिप संपत्ति
उदाहरण
पृष्ठभूमि के पेंटिंग क्षेत्र को निर्दिष्ट करें:
document.getElementById("myDIV").style.backgroundClip = "content-box";
परिभाषा और उपयोग
बैकग्राउंडक्लिप प्रॉपर्टी बैकग्राउंड के पेंटिंग एरिया को सेट या रिटर्न करती है।
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
backgroundClip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
वाक्य - विन्यास
बैकग्राउंडक्लिप प्रॉपर्टी लौटाएं:
object.style.backgroundClip
बैकग्राउंडक्लिप प्रॉपर्टी सेट करें:
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
border-box | Default value. The background is clipped to the border box |
padding-box | The background is clipped to the padding box |
content-box | The background is clipped to the content box |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | बॉर्डर-बॉक्स |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, किसी तत्व की पृष्ठभूमि-क्लिप संपत्ति का प्रतिनिधित्व करती है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
सीएसएस संदर्भ: पृष्ठभूमि-क्लिप संपत्ति