CSS ကော်လံ-ဖြည့်စွက် ပိုင်ဆိုင်မှု
ဥပမာ
ကော်လံများဖြည့်နည်းကို သတ်မှတ်ပါ-
.newspaper1 {
column-fill: auto;
}
.newspaper2 {
column-fill: balance;
}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် column-fill
ကော်လံများကို မည်ကဲ့သို့ ဖြည့်ရမည်၊ ဟန်ချက်ညီသည်ဖြစ်စေ မပြုလုပ်သည်ကို သတ်မှတ်သည်။
အကြံပြုချက်- ကော်လံအများအပြားတွင် အမြင့်ကို ပေါင်းထည့်ပါက၊ အကြောင်းအရာ ကော်လံများကို မည်သို့ဖြည့်သွင်းမည်ကို သင် ထိန်းချုပ်နိုင်သည်။ အကြောင်းအရာကို ဟန်ချက်ညီညီ သို့မဟုတ် စဉ်ဆက်မပြတ် ဖြည့်သွင်းနိုင်သည်။
မူလတန်ဖိုး: | လက်ကျန် |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.columnFill="auto" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
နံပါတ်များ -moz- ဖြင့် နောက်မှလိုက်သော ပထမဦးဆုံးဗားရှင်းကို အကြိုစာလုံးဖြင့် လုပ်ဆောင်သည်။
Property | |||||
---|---|---|---|---|---|
column-fill | 50.0 | 10.0 | 52.0 13.0 -moz- |
10.0 7.0 -webkit- |
37.0 |
CSS Syntax
column-fill: balance|auto|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
balance | Default value. Fills each column with about the same amount of content, but will not allow the columns to be taller than the height (so, columns might be shorter than the height as the browser distributes the content evenly horizontally) |
auto | Fills each column until it reaches the height, and do this until it runs out of content (so, this value will not necessarily fill all the columns nor fill them evenly) |
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;
}
ဥပမာ
ကော်လံများကြား 40 pixels ကွာဟချက်ကို သတ်မှတ်ပါ-
div
{
column-gap: 40px;
}
ဥပမာ
ကော်လံများအကြား စည်းကမ်း၏ အကျယ်၊ ပုံစံနှင့် အရောင်ကို သတ်မှတ်ပါ-
div
{
column-rule: 4px double #ff00ff;
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Multiple Columns
HTML DOM ရည်ညွှန်းချက်- ကော်လံဖြည့်စွက်ပိုင်ဆိုင်မှု