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