CSS ကော်လံ-ကွာဟမှု ပိုင်ဆိုင်မှု
ဥပမာ
ကော်လံများကြား 40 pixels ကွာဟချက်ကို သတ်မှတ်ပါ-
div
{
column-gap: 40px;
}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် column-gap
ကော်လံများကြား ကွာဟချက်ကို သတ်မှတ်သည်။
မှတ်ချက်- ကော်လံများကြားတွင် ကော်လံ စည်းမျဉ်းတစ်ခု ရှိနေပါက ၊ ၎င်းသည် ကွာဟချက်၏အလယ်တွင် ပေါ်လာမည်ဖြစ်သည်။
မူလတန်ဖိုး: | ပုံမှန် |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS Box Alignment Module အဆင့် ၃ |
JavaScript syntax- | အရာဝတ္ထု .style.columnGap="50px" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
column-gap (in Multiple Columns) | 50 | 10 | 52 | 10 | 37 |
column-gap (in Grid) | 66 | 16 | 61 | 12.1 | 53 |
column-gap (in Flexbox) | 84 | 84 | 63 | Not supported | 70 |
CSS Syntax
column-gap: length|normal|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
length | A specified length that will set the gap between the columns | |
normal | Default value. Specifies a normal gap between the columns. W3C suggests a value of 1em | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
နောက်ထပ် ဥပမာများ
ဥပမာ
<div> ဒြပ်စင်တစ်ခုတွင် စာသားကို ကော်လံသုံးခုသို့ ပိုင်းခြားပါ။
div
{
column-count: 3;
}
ဥပမာ
ကော်လံများအကြား စည်းကမ်း၏ အကျယ်၊ ပုံစံနှင့် အရောင်ကို သတ်မှတ်ပါ-
div
{
column-rule: 4px double #ff00ff;
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Multiple Columns
CSS သင်ခန်းစာ- CSS Grid Layout
CSS ရည်ညွှန်းချက်- အတန်းကွာဟမှု ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- ကွာဟချက် ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- columnGap ပိုင်ဆိုင်မှု