ပုံစံ textOverflow Property
ဥပမာ
textOverflow ပိုင်ဆိုင်မှုကို ပြောင်းပါ-
document.getElementById("myDIV").style.textOverflow = "ellipsis";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
စာသားပါရှိသော ဒြပ်စင်ကို ပြည့်လျှံသွားသောအခါတွင် textOverflow ပိုင်ဆိုင်မှုသည် မည်သည့်အရာဖြစ်သင့်သည်ကို သတ်မှတ်သည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
textOverflow | Yes | Yes | Yes | Yes | Yes |
အထားအသို
textOverflow ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.textOverflow
textOverflow ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.textOverflow = "clip|ellipsis|string|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
clip | Default value. Clips the text |
ellipsis | Render an ellipsis ("...") to represent clipped text |
string | Render the given string to represent clipped text |
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 ရည်ညွှန်းချက်- စာသား-လွှမ်းမိုးမှု ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု