CSS list-style-type Property
ဥပမာ
အချို့သော မတူညီသော စာရင်းပုံစံများကို သတ်မှတ်ပါ-
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
စာရင်းတစ်ခုရှိ list-item အမှတ်အသား အမျိုးအစားကို သတ်မှတ်သည်။
မူလတန်ဖိုး: | disc ကို |
---|---|
အမွေဆက်ခံသည်- | ဟုတ်တယ် |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.listStyleType="square" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
list-style-type | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
မှတ်ချက်- Edge 18 နှင့် Opera 12 နှင့် အစောပိုင်းဗားရှင်းများသည် တန်ဖိုးများ- cjk-ideographic၊ hebrew၊ hiragana၊ hiragana-iroha၊ katakana နှင့် katakana-iroha တို့ကို မပံ့ပိုးပါ။
CSS Syntax
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;}
ဥပမာ
၎င်းတို့၏မူလ ကျည်ဆန်များကို ဖယ်ရှားပြီး ကျည်ဆံများ (•) နှင့်တူသော HTML အကြောင်းအရာတစ်ခုကို ထည့်ခြင်းဖြင့် <ul> သို့မဟုတ် <ol> အတွက် ကျည်ဆံအရောင်များကို မည်သို့ထည့်ရမည်နည်း။
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 သင်ခန်းစာ- CSS စာရင်း
CSS ရည်ညွှန်းချက်- စာရင်းပုံစံ ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- listStyleType ပိုင်ဆိုင်မှု