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-mode: luminance;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် mask-mode
မျက်နှာဖုံးအလွှာပုံအား အလင်းရောင်မျက်နှာဖုံးအဖြစ် သို့မဟုတ် အယ်လ်ဖာမျက်နှာဖုံးအဖြစ် သဘောထားသင့်သလားဟု သတ်မှတ်သည်။
မူလတန်ဖိုး: | ကိုက်ညီမှုအရင်းအမြစ် |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.maskMode="alpha" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
mask-mode | Not supported | Not supported | 53.0 | Not supported | Not supported |
CSS Syntax
mask-mode:
match-source|luminance|alpha|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
match-source | If the mask-image property is an image (an image URL or a gradient), set mask-mode to alpha. If the mask-image property is an SVG <mask> element, use the <mask> element's mask-type property. This is default. |
luminance | Use the luminance values of the mask image as the mask values |
alpha | Use the alpha values of the mask image as the mask values |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံးပုံ ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံး-မူလပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံးအနေအထား ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- mask-repeat ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- မျက်နှာဖုံးအရွယ်အစား ပိုင်ဆိုင်မှု
CSS သင်ခန်းစာ- CSS Masking