CSS နောက်ခံ-ကလစ် ပိုင်ဆိုင်မှု
ဥပမာ
ဒြပ်စင်တစ်ခုအတွင်း နောက်ခံသည် မည်မျှအထိ ရှည်သင့်သည်ကို သတ်မှတ်ပါ-
div
{
border: 10px dotted black;
padding: 15px;
background:
lightblue;
background-clip:
padding-box;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် background-clip
ဒြပ်စင်တစ်ခုအတွင်း နောက်ခံ (အရောင် သို့မဟုတ် ရုပ်ပုံ) မည်မျှအထိ ရှည်သင့်သည်ကို သတ်မှတ်သည်။
မူလတန်ဖိုး: | နယ်စပ်-သေတ္တာ |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.backgroundClip="content-box" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
background-clip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
CSS Syntax
background-clip: border-box|padding-box|content-box|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
border-box | Default value. The background extends behind the border | |
padding-box | The background extends to the inside edge of the border | |
content-box | The background extends to the edge of the content box | |
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 ရည်ညွှန်းချက်- နောက်ခံClip ပိုင်ဆိုင်မှု