ပုံစံ ကလစ် ပိုင်ဆိုင်မှု
ဥပမာ
ပုံတစ်ပုံကို သတ်မှတ်ပုံသဏ္ဍာန်အဖြစ် ညှပ်ပါ-
document.getElementById("myImg").style.clip = "rect(0px 75px 75px 0px)";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ကလစ် ပိုင်ဆိုင်မှုသည် နေရာချထားသော ဒြပ်စင်တစ်ခု၏ မည်သည့်အပိုင်းကို မြင်နိုင်သည်ကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
clip | Yes | Yes | Yes | Yes | Yes |
အထားအသို
ကလစ်၏ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.clip
ကလစ်၏ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.clip = "auto|rect(top right bottom left)|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
auto | Default. The element does not clip |
rect(top right bottom left) | Clips the shape defined by the four coordinates |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | အော်တို |
---|---|
ပြန်ပို့တန်ဖိုး- | မြင်နိုင်သော နေရာချထားသော ဒြပ်စင်၏ အစိတ်အပိုင်းကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS2 |
နောက်ထပ် ဥပမာများ
ဥပမာ
ကလစ်၏ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
alert(document.getElementById("myImg").style.clip);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS နေရာချထား ခြင်း။
CSS ရည်ညွှန်းချက်- အပိုင်းပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု