CSS เด็กกำพร้าทรัพย์สิน
ตัวอย่าง
เมื่อพิมพ์ ให้แสดงอย่างน้อย 4 บรรทัดที่ด้านล่างและ 2 บรรทัดที่ด้านบนสุดของแต่ละหน้า:
@media print {
orphans: 4;
widows: 2;
}
ความหมายและการใช้งาน
คุณสมบัติorphans
ระบุจำนวนบรรทัดขั้นต่ำที่ต้องทิ้งไว้ที่ด้านล่างของหน้าหรือคอลัมน์
เคล็ดลับ:ดูทรัพย์สินด้วย
widows
ค่าเริ่มต้น: | 2 |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS3 |
ไวยากรณ์ JavaScript: | วัตถุ .style.orphans = "3" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
orphans | 25.0 | 8.0 | Not supported | 3.1 | 10.0 |
ไวยากรณ์ CSS
orphans: integer|initial|inherit;
มูลค่าทรัพย์สิน
Value | Description |
---|---|
integer | Specifies the minimum number of lines that must be left at the bottom of a page or column. Negative values are not allowed |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |