ပုံစံ tabSize Property
ဥပမာ
<pre> အစိတ်အပိုင်းတစ်ခု၏ တက်ဘ်အရွယ်အစားကို သတ်မှတ်ပါ-
document.getElementById("myPRE").style.tabSize = "16";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
tabSize ပိုင်ဆိုင်မှုသည် တက်ဘ်ဇာတ်ကောင်အတွက် အသုံးပြုသည့် space ၏ အရှည်ကို သတ်မှတ်ပေးပါသည်။
HTML တွင်၊ တက်ဘ်အက္ခရာကို ပုံမှန်အားဖြင့် <textarea> နှင့် <pre> ကဲ့သို့ အချို့သောဒြပ်စင်များမှလွဲ၍ နေရာလွတ်-အက္ခရာအဖြစ် ပြသလေ့ရှိပြီး tabSize ပိုင်ဆိုင်မှု၏ ရလဒ်ကို ဤဒြပ်စင်များအတွက်သာ မြင်နိုင်မည်ဖြစ်သည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
tabSize | Yes | 79.0 | Not supported Use MozTabSize |
6.1 | 15.0 |
အထားအသို
tabSize ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.tabSize
tabSize ကို သတ်မှတ်ပါ-
object.style.tabSize = "number|length|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | Default value 8. Specifies the number of space-characters that should be displayed for each tab-character |
length | Specifies the length of a tab-character. This property value is not supported in any of the major browsers |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ၈ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ တက်ဘ်အရွယ်အစား ပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသော စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- တက်ဘ်အရွယ်အစား ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု