CSS စာသား-အင်တင်းလုပ်ခြင်း ပိုင်ဆိုင်မှု
ဥပမာ
မတူညီသောတန်ဖိုးများဖြင့် စာသား၏ပထမစာကြောင်းကို အင်တင်းထည့်ပါ-
div.a {
text-indent: 50px;
}
div.b {
text-indent: -2em;
}
div.c {
text-indent:
30%;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
text-indent
ပိုင်ဆိုင်မှုသည် စာသား-ဘလောက်တစ်ခုတွင် ပထမစာကြောင်း၏ အင်တင်းကို သတ်မှတ်သည် ။
မှတ်ချက်- အနုတ်တန်ဖိုးများကို ခွင့်ပြုထားသည်။ တန်ဖိုးသည် အနှုတ်ဖြစ်ပါက ပထမစာကြောင်းသည် ဘယ်ဘက်သို့ အင်တင်းသွားပါမည်။
မူလတန်ဖိုး: | ၀ယ်တယ်။ |
---|---|
အမွေဆက်ခံသည်- | ဟုတ်တယ် |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.textIndent="50px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
text-indent | 1.0 | 3.0 | 1.0 | 1.0 | 3.5 |
CSS Syntax
text-indent: length|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
length | Defines a fixed indentation in px, pt, cm, em, etc. Default value is 0. Read about length units | |
% | Defines the indentation in % of the width of the parent element | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
HTML DOM ရည်ညွှန်းချက်- textIndent ပိုင်ဆိုင်မှု