CSS သည် Property ကိုရှင်းလင်းသည်။
ဥပမာ
<p> ဒြပ်စင်အား ဘယ်ဘက်အခြမ်းရှိ ဖေါက်ထားသောဒြပ်စင်များအောက်တွင် တွန်းပို့သည် ( <p> ဒြပ်စင်သည် ဘယ်ဘက်ခြမ်းရှိ လွင့်နေသောဒြပ်စင်များကို ခွင့်မပြုပါ)။
img
{
float: left;
}
p.clear
{
clear: left;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် clear
ရွေ့လျားနေသော ဒြပ်စင်များဘေးရှိ စီးဆင်းမှုကို ထိန်းချုပ်သည်။
clear
ပိုင်ဆိုင်မှုသည် ရေပေါ်ဒြပ်စင်တစ်ခု၏ဘေးရှိ ဒြပ်စင်တစ်ခုနှင့် ဖြစ်ပျက်ရမည့်အရာကို သတ်မှတ်ပေးသည် ။
အကြံပြုချက်- ပိုင်ဆိုင်မှု ကိုလည်း ကြည့်ရှုပါ ။
float
မူလတန်ဖိုး: | မရှိ |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.clear="နှစ်ခုလုံး" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
clear | 1.0 | 5.0 | 1.0 | 1.0 | 6.0 |
CSS Syntax
clear: none|left|right|both|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | Default. The element is not pushed below left or right floated elements |
left | The element is pushed below left floated elements |
right | The element is pushed below right floated elements |
both | The element is pushed below both left and right floated elements |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Float
HTML DOM ရည်ညွှန်းချက်- ပိုင်ဆိုင်မှုကို ရှင်းလင်း ပါ။