शैली सीमाछविस्लाइस संपत्ति
उदाहरण
छवि-सीमा के आवक ऑफ़सेट निर्दिष्ट करें:
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
परिभाषा और उपयोग
BorderImageSlice प्रॉपर्टी इमेज-बॉर्डर के आवक ऑफ़सेट को निर्दिष्ट करती है।
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
इसके बजाय सीमा छवि संपत्ति देखें !
वाक्य - विन्यास
सीमा छवि स्लाइस संपत्ति लौटाएं:
object.style.borderImageSlice
सीमा छवि स्लाइस संपत्ति सेट करें:
object.style.borderImageSlice = "number|%|fill|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
number | Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image) |
% | Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. Default value is 100% |
fill | Causes the middle part of the border-image to be preserved |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | 100% |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, एक तत्व की सीमा-छवि-टुकड़ा संपत्ति का प्रतिनिधित्व करती है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
सीएसएस संदर्भ: सीमा-छवि-टुकड़ा संपत्ति