စတိုင်လ် ပိုင်ဆိုင်မှု _
ဥပမာ
လျှံနေသောအကြောင်းအရာကို လှိမ့်ရန် လျှံနေသောပိုင်ဆိုင်မှုကို သုံးပါ-
document.getElementById("myDIV").style.overflow = "scroll";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
လျှံနေသောပိုင်ဆိုင်မှုသည် ဒြပ်စင်ဘောက်စ်အပြင်ဘက်တွင် လုပ်ဆောင်ရမည့်အကြောင်းအရာကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
အကြံပြုချက်- စာရွက်စာတမ်းတစ်ခုလုံး၏ scrollbars များကို ဝှက်ထားလိုပါက၊ body သို့မဟုတ် html element ပေါ်ရှိ overflow property ကို အသုံးပြုပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
overflow | Yes | Yes | Yes | Yes | Yes |
အထားအသို
ပြည့်လျှံနေသောပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.overflow
ပြည့်လျှံမှုပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.overflow = "visible|hidden|scroll|auto|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
visible | Content is NOT clipped and may be shown outside the element box. This is default |
hidden | Content outside the element box is not shown |
scroll | Scroll bars are added, and content is clipped when necessary |
auto | Content is clipped and scroll bars are added when necessary |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မြင်နိုင်သည်။ |
---|---|
ပြန်ပို့တန်ဖိုး- | အစိတ်အပိုင်းအကွက်အပြင်ဘက်တွင် တင်ဆက်သည့်အကြောင်းအရာကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS2 |
နောက်ထပ် ဥပမာများ
ဥပမာ
ပြည့်လျှံနေသော အကြောင်းအရာကို ဖုံးကွယ်ရန် လျှံနေသော ပိုင်ဆိုင်မှုကို သုံးပါ-
document.getElementById("myDiv").style.overflow = "hidden";
ဥပမာ
ပြည့်လျှံနေသောပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
alert(document.getElementById("myDiv").style.overflow);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Overflow
CSS သင်ခန်းစာ- CSS နေရာချထား ခြင်း။
CSS ရည်ညွှန်းချက်- ပြည့်လျှံနေသော ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု