CSS သည် Property မတိုင်မီ ချိုးဖျက်သည်။
ဥပမာ
<h1> ဒြပ်စင်တစ်ခုရှေ့တွင် စာမျက်နှာခွဲခြင်းကို အမြဲထည့်သွင်းပါ-
@media print
{
h1 {
break-before: always;
}
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် break-before
စာမျက်နှာခွဲခြင်း၊ ကော်လံကွဲခြင်း သို့မဟုတ် သတ်မှတ်ထားသောဒြပ်စင်မတိုင်မီ ဖြစ်ပွားသင့်သည်ရှိ/မရှိကို သတ်မှတ်ပေးသည်။
ပိုင်ဆိုင်မှုသည် CSS2 ပိုင်ဆိုင်မှု ကို break-before
တိုးချဲ့သည် ။
page-break-before
အသုံးပြုခြင်းဖြင့် break-before
၊ သင်သည် စာမျက်နှာ၊ ကော်လံ သို့မဟုတ် အပိုင်းကို break-before
ပိုင်ဆိုင်မှုကို မအသုံးချမီ စာမျက်နှာကို ချိုးဖျက်ရန်၊ သို့မဟုတ် စာမျက်နှာနှစ်ခုတွင် ခွဲခြမ်းရမည့်အရာအား ရှောင်ရှားရန် သင်ပြောနိုင်သည်။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.breakBefore="အမြဲတမ်း" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
break-before | 50.0 | 10.0 | 65.0 | 10.0 | 37.0 |
CSS Syntax
break-before: auto|all|always|avoid|avoid-column|avoid-page|avoid-region|column|left|page|recto|region|right|verso|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
auto | Default. Automatic page/column/region break before the element |
all | Always insert a page-break right before the principal box |
always | Always insert a page-break before the element |
avoid | Avoid a page/column/region break before the element |
avoid-column | Avoid a column-break before the element |
avoid-page | Avoid a page-break before the element |
avoid-region | Avoid a region-break before the element |
column | Always insert a column-break before the element |
left | Insert one or two page-breaks before the element so that the next page is formatted as a left page |
page | Always insert a page-break before the element |
recto | Insert one or two page-breaks before the principal box so that the next page is formatted as a recto page |
region | Always insert a region-break before the element |
right | Insert one or two page-breaks before the element so that the next page is formatted as a right page |
verso | Insert one or two page-breaks before the principal box so that the next page is formatted as a verso page |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နောက်ထပ် ဥပမာများ
ဥပမာ
ပုံနှိပ်သည့်အခါ အခန်းအသစ်များအားလုံးသည် မှန်ကန်သောစာမျက်နှာ (စာအုပ်တွင်ကဲ့သို့) စတင်သင့်သည်ဟု သေချာစေရန်၊ သင်သည် break-before ကိုသုံးနိုင်သည်- <h1> အစိတ်အပိုင်းအားလုံးအတွက် မှန်ကန်သည်-
@media print
{
h1 {
break-before: right;
}
}
ဥပမာ
ဒေသတစ်ခုရှိ <ul> ဒြပ်စင်များရှေ့တွင် တိုင်းဒေသ-ခွဲကို အမြဲတမ်း ထည့်သွင်းပါ-
.region ul {
break-before: region;
}
}