शैली पृष्ठसंपत्ति से पहले तोड़ें
उदाहरण
आईडी = "पाद लेख" के साथ प्रत्येक <p> तत्व से पहले हमेशा एक पृष्ठ विराम सेट करें:
document.getElementById("footer").style.pageBreakBefore = "always";
इसे स्वयं आज़माएं "
परिभाषा और उपयोग
PageBreakBefore प्रॉपर्टी किसी तत्व (प्रिंटिंग या प्रिंट पूर्वावलोकन के लिए) से पहले पेज-ब्रेक व्यवहार सेट या लौटाता है।
नोट: पेजब्रेकबियर प्रॉपर्टी का पूरी तरह से स्थित तत्वों पर कोई प्रभाव नहीं पड़ता है। पृष्ठ विराम केवल प्रिंट पूर्वावलोकन में या प्रिंट करते समय दिखाई देता है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
pageBreakBefore | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
पृष्ठ को वापस करें संपत्ति से पहले तोड़ें:
object.style.pageBreakBefore
संपत्ति से पहले पेजब्रेक सेट करें:
object.style.pageBreakBefore = "auto|always|avoid|emptystring|left|right|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | Insert a page break before the element if necessary. This is default |
always | Always insert a page break before the element |
avoid | Avoid a page break before the element |
"" (empty string) | Page break is not inserted before the element |
left | Insert one or two page breaks before the element, so the next page is considered a left page |
right | Insert one or two page breaks before the element, so the next page is considered 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 |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | ऑटो |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, प्रिंट करते समय किसी तत्व से पहले पेज-ब्रेक व्यवहार का प्रतिनिधित्व करता है |
सीएसएस संस्करण | सीएसएस 2 |
संबंधित पृष्ठ
सीएसएस संदर्भ: पेज-ब्रेक-प्रॉपर्टी से पहले
❮ स्टाइल ऑब्जेक्ट