HTML DOM Ol Object
အိုဝထ္ထု
Ol object သည် HTML <ol> element ကို ကိုယ်စားပြုသည်။
Ol Object ကို ဝင်သုံးပါ။
getElementById() ကို အသုံးပြု၍ <ol> ဒြပ်စင်တစ်ခုအား သင်ဝင်ရောက်နိုင်သည်။
ဥပမာ
var x = document.getElementById("myOl");
Ol Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <ol> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("OL");
Ol Object Properties
Property | Description |
---|---|
compact | Not supported in HTML5. Use style.lineHeight instead. Sets or returns whether the list should render smaller than normal, or not |
reversed | Sets or returns whether the list order should be descending or not |
start | Sets or returns the value of the start attribute of an ordered list |
type | Sets or returns the value of the type attribute of an ordered list |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Ol object သည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <ol> တဂ်