CSS सूची-शैली-प्रकार की संपत्ति
उदाहरण
कुछ भिन्न सूची शैलियाँ सेट करें:
ul.a {list-style-type: circle;}
ul.b {list-style-type: square;}
ol.c {list-style-type: upper-roman;}
ol.d {list-style-type: lower-alpha;}
नीचे और अधिक "इसे स्वयं आज़माएं" उदाहरण।
परिभाषा और उपयोग
list-style-type
किसी सूची में सूची-आइटम मार्कर का प्रकार निर्दिष्ट करता है ।
डिफ़ॉल्ट मान: | डिस्क |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.listStyleType="square" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
list-style-type | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
नोट: एज 18 और ओपेरा 12 और पुराने संस्करण मूल्यों का समर्थन नहीं करते हैं: सीजेके-आइडियोग्राफिक, हिब्रू, हीरागाना, हीरागाना-इरोहा, कटकाना, और कटकाना-इरोहा।
सीएसएस सिंटेक्स
list-style-type: value;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
disc | Default value. The marker is a filled circle | |
armenian | The marker is traditional Armenian numbering | |
circle | The marker is a circle | |
cjk-ideographic | The marker is plain ideographic numbers | |
decimal | The marker is a number | |
decimal-leading-zero | The marker is a number with leading zeros (01, 02, 03, etc.) | |
georgian | The marker is traditional Georgian numbering | |
hebrew | The marker is traditional Hebrew numbering | |
hiragana | The marker is traditional Hiragana numbering | |
hiragana-iroha | The marker is traditional Hiragana iroha numbering | |
katakana | The marker is traditional Katakana numbering | |
katakana-iroha | The marker is traditional Katakana iroha numbering | |
lower-alpha | The marker is lower-alpha (a, b, c, d, e, etc.) | |
lower-greek | The marker is lower-greek | |
lower-latin | The marker is lower-latin (a, b, c, d, e, etc.) | |
lower-roman | The marker is lower-roman (i, ii, iii, iv, v, etc.) | |
none | No marker is shown | |
square | The marker is a square | |
upper-alpha | The marker is upper-alpha (A, B, C, D, E, etc.) | |
upper-greek | The marker is upper-greek | |
upper-latin | The marker is upper-latin (A, B, C, D, E, etc.) | |
upper-roman | The marker is upper-roman (I, II, III, IV, V, etc.) | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
और ज्यादा उदाहरण
उदाहरण
यह उदाहरण सभी अलग-अलग सूची-आइटम मार्करों को प्रदर्शित करता है:
ul.a {list-style-type: circle;}
ul.b {list-style-type: disc;}
ul.c {list-style-type: square;}
ol.d {list-style-type: armenian;}
ol.e {list-style-type: cjk-ideographic;}
ol.f {list-style-type: decimal;}
ol.g {list-style-type: decimal-leading-zero;}
ol.h {list-style-type: georgian;}
ol.i {list-style-type: hebrew;}
ol.j {list-style-type: hiragana;}
ol.k {list-style-type: hiragana-iroha;}
ol.l {list-style-type: katakana;}
ol.m {list-style-type: katakana-iroha;}
ol.n {list-style-type: lower-alpha;}
ol.o {list-style-type: lower-greek;}
ol.p {list-style-type: lower-latin;}
ol.q {list-style-type: lower-roman;}
ol.r {list-style-type: upper-alpha;}
ol.s {list-style-type: upper-greek;}
ol.t {list-style-type: upper-latin;}
ol.u {list-style-type: upper-roman;}
ol.v {list-style-type: none;}
ol.w {list-style-type: inherit;}
उदाहरण
<ul> या <ol> के लिए उनके डिफ़ॉल्ट बुलेट को हटाकर और बुलेट की तरह दिखने वाली HTML इकाई जोड़कर बुलेट रंग कैसे जोड़ें (•):
ul {
list-style: none; /* Remove list bullets */
padding: 0;
margin: 0;
}
li {
padding-left: 16px;
}
li::before {
content: "•"; /* Insert content that looks like bullets */
padding-right: 8px;
color: blue; /* Or a color you prefer */
}
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस सूची
CSS संदर्भ: सूची-शैली की संपत्ति
एचटीएमएल डोम संदर्भ: सूची स्टाइल टाइप संपत्ति