सीएसएस सूची-शैली-छवि संपत्ति
उदाहरण
किसी सूची में सूची-आइटम मार्कर के रूप में एक छवि निर्दिष्ट करें:
ul
{
list-style-image: url('sqpurple.gif');
}
परिभाषा और उपयोग
list-style-image
संपत्ति सूची-आइटम मार्कर को एक छवि के साथ बदल देती है ।
नोट: हमेशा इसके अलावा सूची-शैली-प्रकार की संपत्ति निर्दिष्ट करें। यदि किसी कारण से छवि अनुपलब्ध है तो इस गुण का उपयोग किया जाता है।
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.listStyleImage="url('smiley.gif')" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
list-style-image | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
सीएसएस सिंटेक्स
list-style-image: none|url|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
none | No image will be displayed. Instead, the list-style-type property will define what type of list marker will be rendered. This is default | |
url | The path to the image to be used as a list-item marker | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस सूची
CSS संदर्भ: सूची-शैली की संपत्ति
HTML DOM संदर्भ: listStyleImage गुण