स्टाइल अलाइनसेल्फ प्रॉपर्टी
उदाहरण
कंटेनर में फ़िट होने के लिए किसी लचीले तत्व के अंदर किसी एक आइटम के लिए संरेखण सेट करें:
document.getElementById("myBlueDiv").style.alignSelf = "stretch";
परिभाषा और उपयोग
alignSelf गुण लचीले कंटेनर के अंदर चयनित आइटम के लिए संरेखण निर्दिष्ट करता है।
नोट: alignSelf गुण लचीले कंटेनर के alignItems गुण को ओवरराइड करता है।
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
वेबकिट के बाद नंबर पहले संस्करण को निर्दिष्ट करते हैं जो उपसर्ग के साथ काम करता है।
Property | |||||
---|---|---|---|---|---|
alignSelf | 21.0 | 11.0 | 20.0 | 9.0 7.0 Webkit |
12.1 |
वाक्य - विन्यास
alignSelf प्रॉपर्टी लौटाएं:
object.style.alignSelf
alignSelf प्रॉपर्टी सेट करें:
object.style.alignSelf = "auto|stretch|center|flex-start|flex-end|baseline|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | Default. The element inherits its parent container's align-items property, or "stretch" if it has no parent container |
stretch | The element is positioned to fit the conatiner |
center | The element is positioned at the center of the container |
flex-start | The element is are positioned at the beginning of the container |
flex-end | The element is positioned at the end of the container |
baseline | The element is positioned at the baseline of the container |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | ऑटो |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, एक तत्व की संरेखण-स्व संपत्ति का प्रतिनिधित्व करता है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
सीएसएस संदर्भ: संरेखित-स्वयं संपत्ति
HTML डोम स्टाइल संदर्भ: alignContent गुण
HTML डोम स्टाइल संदर्भ: alignItems संपत्ति