CSS မျက်နှာဖုံးအရွယ်အစား ပိုင်ဆိုင်မှု
ဥပမာ
မျက်နှာဖုံးအလွှာပုံအတွက် အရွယ်အစား (ရာခိုင်နှုန်းဖြင့်) သတ်မှတ်ပါ-
.mask1 {
-webkit-mask-image: url(w3logo.png);
mask-image: url(w3logo.png);
-webkit-mask-size: 70%;
mask-size: 70%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှုသည် မျက်နှာဖုံးအလွှာပုံ ၏ mask-size
အရွယ်အစားကို သတ်မှတ်သည်။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.maskSize="100px 200px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
နံပါတ်များ -webkit- နောက်တွင် ရှေ့ဆက်တွဲဖြင့် လုပ်ဆောင်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပါ။
Property | |||||
---|---|---|---|---|---|
mask-image | 4.0 -webkit- | 79.0 -webkit- | 53.0 | 4.0 -webkit- | 15.0 -webkit- |
CSS Syntax
mask-image: auto|size|contain|cover|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
auto | This is default |
size | Specifies the size of the mask image in px, em, etc, or in % |
contain | Scales the mask image in a way that both its width and its height fit inside the container |
cover | Scales the mask image in a way that both its width and its height cover the container |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နောက်ထပ် ဥပမာများ
ဥပမာ
မျက်နှာဖုံးအလွှာပုံအတွက် အရွယ်အစား (pixels) ကို သတ်မှတ်ပါ-
.mask1 {
-webkit-mask-image: url(w3logo.png);
mask-image: url(w3logo.png);
-webkit-mask-size: 200px 200px;
mask-size: 200px 200px;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံးပုံ ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံးမုဒ် ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံး-မူလပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံးအနေအထား ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- mask-repeat ပိုင်ဆိုင်မှု
CSS သင်ခန်းစာ- CSS Masking