HTML DOM Pre Object
Pre Object ပါ။
Pre object သည် HTML <pre> element ကို ကိုယ်စားပြုသည်။
Pre Object ကို အသုံးပြုပါ။
getElementById() ကို အသုံးပြု၍ <pre> ဒြပ်စင်တစ်ခုအား သင်ဝင်ရောက်နိုင်သည်။
ဥပမာ
var x = document.getElementById("myPre");
Pre Object တစ်ခုဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <pre> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("PRE");
Object Properties ကြို
Property | Description |
---|---|
width | Not supported in HTML5. Use
style.width instead. Sets or returns the value of the width attribute of the preformatted text |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Pre object သည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML သင်ခန်းစာ- HTML စာသားဖော်မတ် ခြင်း။
HTML အကိုးအကား- HTML <pre> တဂ်