CSS page-break- Property မတိုင်ခင်
ဥပမာ
<h1> ဒြပ်စင်တစ်ခုရှေ့တွင် စာမျက်နှာခွဲခြင်းကို အမြဲထည့်သွင်းပါ-
@media print
{
h1 {page-break-before: always;}
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
page-break-before
ပိုင်ဆိုင်မှုသည် သတ်မှတ်ထားသော ဒြပ်စင်တစ်ခုရှေ့တွင် စာမျက်နှာခွဲခြင်းကို ပေါင်းထည့်သည် ။
အကြံပြုချက်- ဂုဏ်သတ္တိများ- စာမျက်နှာ-ခွဲ-မတိုင်မှီ၊ စာမျက်နှာ-ခွဲ-ပြီးနောက် နှင့် စာမျက်နှာ-ခွဲ-အတွင်းပိုင်း- စာရွက်စာတမ်းကို ရိုက်နှိပ်သည့်အခါ မည်သို့ပြုမူသင့်သည်ကို သတ်မှတ်ရန် ကူညီပေးသည်။
မှတ်ချက်- ဤပိုင်ဆိုင်မှုကို အလွတ် <div> တွင် သို့မဟုတ် လုံးဝ နေရာချထားသော ဒြပ်စင်များပေါ်တွင် သင် အသုံးမပြုနိုင်ပါ။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS2 |
JavaScript syntax- | အရာဝတ္ထု .style.pageBreakBefore="အမြဲတမ်း" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
page-break-before | 1.0 | 4.0 | 1.0 | 1.2 | 7.0 |
မှတ်ချက်- ဘရောင်ဇာတစ်ခုမှ "ရှောင်ရန်" ကို မပံ့ပိုးပါ။
မှတ်ချက်- ဘရောင်ဇာများသည် "ဘယ်" နှင့် "ညာ" ကို "အမြဲ" ဟု အဓိပ္ပာယ်ဖွင့်နိုင်သည်။
CSS Syntax
page-break-before: auto|always|avoid|left|right|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
auto | Default. Automatic page-breaks |
always | Always insert a page-break before the element |
avoid | Avoid page-break before the element (if possible) |
left | Insert page-break before the element so that the next page is formatted as a left page |
right | Insert page-break before the element so that the next page is formatted as a right page |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
HTML DOM ရည်ညွှန်းချက်- pageBreakBefore ပိုင်ဆိုင်မှု