Style clear Property ၊
ဥပမာ
ဒြပ်စင်တစ်ခုရှိ စာသား၏ ဘယ်ဘက်ခြမ်းရှိ ရေပေါ်အရာဝတ္ထုများကို တားမြစ်ပါ-
document.getElementById("demo").style.clear = "left";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရှင်းရှင်းလင်းလင်း ပိုင်ဆိုင်မှုသည် ရေပေါ်အရာဝတ္ထုများနှင့် သက်ဆိုင်သည့် ဒြပ်စင်၏ အနေအထားကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
clear | Yes | Yes | Yes | Yes | Yes |
အထားအသို
ရှင်းလင်းသောပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.clear
ရှင်းလင်းသောပိုင်ဆိုင်မှုကိုသတ်မှတ်ပါ-
object.style.clear = "none|left|right|both|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | Allows floating objects on both sides of the element. This is default |
left | No floating objects allowed on the left side of the element |
right | No floating objects allowed on the right side of the element |
both | No floating objects allowed on either the left or right side of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မရှိ |
---|---|
ပြန်ပို့တန်ဖိုး- | ရေပေါ်အရာဝတ္ထုများနှင့် ဆက်စပ်နေသော ဒြပ်စင်တစ်ခု၏ အနေအထားကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS1 |
နောက်ထပ် ဥပမာများ
ဥပမာ
ရှင်းလင်းသောပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
alert(document.getElementById("demo").style.clear);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Float
CSS ရည်ညွှန်းချက်- ပိုင်ဆိုင်မှုကို ရှင်းလင်း ပါ။
❮ စတိုင်အရာဝတ္ထု