सीएसएस सभी संपत्ति
उदाहरण
तत्व या तत्व के माता-पिता पर लागू सभी गुणों को उनके प्रारंभिक मान में बदलें:
div
{
background-color: yellow;
color: red;
all: initial;
}
परिभाषा और उपयोग
all
संपत्ति यूनिकोड-बीड़ी और दिशा के अलावा, सभी संपत्तियों को उनके प्रारंभिक या विरासत में प्राप्त मूल्य पर रीसेट करती है ।
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | वस्तु .style.all="प्रारंभिक" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
सीएसएस सिंटेक्स
all: initial|inherit|unset;
सम्पत्ति की कीमत
Value | Description |
---|---|
initial | Changes all the properties applied to the element or the element's parent to their initial value |
inherit | Changes all the properties applied to the element or the element's parent to their parent value |
unset | Changes all the properties applied to the element or the element's parent to their parent value if they are inheritable or to their initial value if not |