ပုံစံ overflowY အိမ်ခြံမြေ
ဥပမာ
စာသားသည် ဒြပ်စင်၏ အကြောင်းအရာ ဧရိယာကို ကျော်သွားပါက ဒေါင်လိုက် ရွှေ့ပါ-
document.getElementById("myDIV").style.overflowY = "scroll";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
overflowY ပိုင်ဆိုင်မှုသည် အကြောင်းအရာ၏ ထိပ်/အောက်ခြေ အစွန်းများနှင့် ဘာလုပ်ရမည်ကို သတ်မှတ်သည် - ၎င်းသည် ဒြပ်စင်၏ အကြောင်းအရာဧရိယာကို ပြည့်သွားပါက၊
အကြံပြုချက်- ဘယ်ဘက်နှင့် ညာဘက်အစွန်းများတွင် ဖြတ်တောက်ခြင်းကို ဆုံးဖြတ်ရန် overflowX ပိုင်ဆိုင်မှုကို အသုံးပြုပါ ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
overflowY | Yes | Yes | Yes | Yes | Yes |
အထားအသို
ပြည့်လျှံY ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.overflowY
overflowY ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.overflowY = "visible|hidden|scroll|auto|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
visible | The content is not clipped, and it may be rendered outside the content box |
hidden | The content is clipped - and no scrolling mechanism is provided |
scroll | The content is clipped and a scrolling mechanism is provided |
auto | Should cause a scrolling mechanism to be provided for overflowing boxes |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မြင်နိုင်သည်။ |
---|---|
ပြန်ပို့တန်ဖိုး- | လိုင်းတစ်ခု၊ ဒြပ်စင်တစ်ခု၏ overflow-y ပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသည်။ |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- overflow-y ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု