CSS सूची-शैली की संपत्ति
उदाहरण
एक घोषणा में सभी सूची गुण निर्दिष्ट करें:
ul
{
list-style: square inside url("sqpurple.gif");
}
परिभाषा और उपयोग
list-style
संपत्ति निम्नलिखित गुणों के लिए एक आशुलिपि है :
यदि मानों में से कोई एक अनुपलब्ध है, तो उस गुण के लिए डिफ़ॉल्ट मान का उपयोग किया जाएगा।
डिफ़ॉल्ट मान: | डिस्क बाहर कोई नहीं |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.listStyle = "दशमलव अंदर" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
list-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
सीएसएस सिंटेक्स
list-style: list-style-type list-style-position list-style-image|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
list-style-type | Specifies the type of list-item marker. Default value is "disc" |
list-style-position | Specifies where to place the list-item marker. Default value is "outside" |
list-style-image | Specifies the type of list-item marker. Default value is "none" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस सूची
एचटीएमएल डोम संदर्भ: सूची शैली संपत्ति