CSS ဇယား-အပြင်အဆင် ပိုင်ဆိုင်မှု
ဥပမာ
မတူညီသော ဇယားကွက်ကွက် အယ်လဂိုရီသမ်များကို သတ်မှတ်ပါ-
table.a {
table-layout: auto;
width: 180px;
}
table.b {
table-layout:
fixed;
width: 180px;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
table-layout
ပိုင်ဆိုင်မှုသည် ဇယားဆဲလ်များ၊ အတန်းများနှင့် ကော်လံများကို ခင်းကျင်းရန် အသုံးပြုသည့် အယ်လဂိုရီသမ်ကို သတ်မှတ်သည် ။
အကြံပြုချက်- စားပွဲအပြင်အဆင်၏ အဓိက အကျိုးကျေးဇူး- ပုံသေ၊ ဇယားက ပိုမြန်တယ်။ စားပွဲကြီးများတွင် ဘရောက်ဆာက ဇယားတစ်ခုလုံးကို ပြန်မပြမချင်း အသုံးပြုသူများသည် ဇယား၏ မည်သည့်အစိတ်အပိုင်းကိုမျှ မတွေ့ရတော့ပါ။ ထို့ကြောင့်၊ သင်သည် table-layout- fixed ကိုအသုံးပြုပါက browser သည် ကျန်ရှိသော table ကို load လုပ်ပြီး render လုပ်နေချိန်တွင် အသုံးပြုသူများသည် ဇယား၏ထိပ်ကိုမြင်ရမည်ဖြစ်ပါသည်။ ၎င်းသည် စာမျက်နှာသည် ပိုမိုမြန်ဆန်စွာ တက်လာသည်ကို ခံစားရစေသည်။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS2 |
JavaScript syntax- | အရာဝတ္ထု .style.tableLayout="fixed" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
table-layout | 14.0 | 5.0 | 1.0 | 1.0 | 7.0 |
CSS Syntax
table-layout: auto|fixed|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
auto | Browsers use an automatic table layout algorithm. The column width is set by the widest unbreakable content in the cells. The content will dictate the layout | |
fixed | Sets a fixed table layout algorithm. The table and column widths are set by the widths of table and col or by the width of the first row of cells. Cells in other rows do not affect column widths. If no widths are present on the first row, the column widths are divided equally across the table, regardless of content inside the cells | |
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 ရည်ညွှန်းချက်- tableLayout ပိုင်ဆိုင်မှု