CSS အပိုင်း ပိုင်ဆိုင်မှု
ဥပမာ
ပုံတစ်ပုံကို ညှပ်ပါ-
img {
position: absolute;
clip: rect(0px,60px,200px,0px);
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပုံတစ်ပုံသည် ၎င်း၏ပါဝင်သောဒြပ်စင်ထက် ကြီးပါက ဘာဖြစ်နိုင်မည်နည်း။
ပိုင်ဆိုင်မှု သည် clip
လုံးဝနေရာယူထားသော ဒြပ်စင်တစ်ခုကို ကလစ်လုပ်ရန် စတုဂံတစ်ခုကို သတ်မှတ်နိုင်စေပါသည်။ စတုဂံကို အပိုင်းလေးခုအဖြစ် သတ်မှတ်ထားသည်၊ အားလုံးကို ညှပ်ထားရမည့်အရာ၏ ဘယ်ဘက်အပေါ်ထောင့်မှ
မှတ်ချက်- "overflow:visible" ဆိုလျှင် ပိုင်ဆိုင်မှုသည် အ clip
လုပ်မလုပ်ပါ။
မှတ်ချက် ။ _ clip
_
clip-path
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS2 |
JavaScript syntax- | အရာဝတ္ထု .style.clip="rect(0px,50px,50px,0px)" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
clip | 1.0 | 8.0 | 1.0 | 1.0 | 7.0 |
CSS Syntax
clip: auto|shape|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
auto | No clipping will be applied. This is default | |
shape | Clips an element. The only valid value is: rect (top, right, bottom, left) | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS နေရာချထား ခြင်း။
HTML DOM ရည်ညွှန်းချက်- အပိုင်းပိုင်ဆိုင်မှု