HTML <ol> မှာ Attribute လို့ ရိုက် ထည့်ပါ။
ဥပမာ
ရိုမန် စာလုံးကြီးများဖြင့် မှာယူထားသော စာရင်း-
<ol type="I">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက်သည် စာရင်း (အက္ခရာများ သို့မဟုတ် နံပါတ်များ) တွင် အသုံးပြုရန် အမှတ်အသားအမျိုးအစား ကို type
သတ်မှတ်သည်။
အကြံပြုချက်- CSS list-style-type property သည် attribute ထက် အမျိုးအစားများ ပိုမိုပေးဆောင်သည် type
(ဥပမာ အောက်တွင် ကြည့်ပါ)။
Browser ပံ့ပိုးမှု
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
အထားအသို
<ol type="1|a|A|i|I">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
1 | Default. Decimal numbers (1, 2, 3, 4) |
a | Alphabetically ordered list, lowercase (a, b, c, d) |
A | Alphabetically ordered list, uppercase (A, B, C, D) |
i | Roman numbers, lowercase (i, ii, iii, iv) |
I | Roman numbers, uppercase (I, II, III, IV) |
နောက်ထပ် ဥပမာများ
ဥပမာ
CSS ဖြင့် ရရှိနိုင်သော မတူညီသော စာရင်းအမျိုးအစားအားလုံးကို ပြသပါ-
<style>
ol.a {list-style-type: armenian;}
ol.b {list-style-type: cjk-ideographic;}
ol.c {list-style-type: decimal;}
ol.d {list-style-type:
decimal-leading-zero;}
ol.e {list-style-type: georgian;}
ol.f
{list-style-type: hebrew;}
ol.g {list-style-type: hiragana;}
ol.h
{list-style-type: hiragana-iroha;}
ol.i {list-style-type: katakana;}
ol.j {list-style-type: katakana-iroha;}
ol.k {list-style-type:
lower-alpha;}
ol.l {list-style-type: lower-greek;}
ol.m
{list-style-type: lower-latin;}
ol.n {list-style-type: lower-roman;}
ol.o {list-style-type: upper-alpha;}
ol.p {list-style-type: upper-latin;}
ol.q {list-style-type: upper-roman;}
ol.r {list-style-type: none;}
ol.s {list-style-type: inherit;}
</style>
❮ HTML <ol> တဂ်