ပုံစံ က မိဘမဲ့ အိမ်ခြံ
ဥပမာ
မိဘမဲ့ကလေးများကို ပြောင်းလဲပြီး ပုံနှိပ်ခြင်း သို့မဟုတ် ပရင့်အကြိုကြည့်ရှုခြင်းအား စစ်ဆေးပါ-
<html>
<head>
<script>
function ChangeOrphans()
{
document.getElementById("p1").style.orphans = document.getElementById("orphans").value;
}
</script>
<style>
.othercontent
{
width: 400px;
border-top: 19cm solid #c3c3c3;
}
@page
{
/* set size of printed page */
size:21cm 27cm;
margin-top:2cm;
}
@media print
{
.orphans
{
orphans:2;
}
}
</style>
</head>
<body>
<div class="othercontent">
<input id="orphans" value="2">
<button onclick="ChangeOrphans();">Change orphans</button>
<p style="font-size:120%" id="p1">
Change orphans and see the print preview.<br>
Line 2<br>
Line 3<br>
Line 4<br>
Line 5<br>
Line 6<br>
Line 7<br>
Line 8<br>
</p>
</body>
</html>
ကိုယ်တိုင်လုပ်စမ်းပါ »
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
မိဘမဲ့တို့၏ပိုင်ဆိုင်မှုသည် စာမျက်နှာတစ်ခု၏အောက်ခြေတွင်မြင်နိုင်ရမည် (ပုံနှိပ်ခြင်း သို့မဟုတ် ပရင့်အစမ်းကြည့်ရှုခြင်းအတွက်) အနိမ့်ဆုံးလိုင်းအရေအတွက်ကို ပြန်ပေးသည်။
မိဘမဲ့ပစ္စည်းများသည် ဘလောက်အဆင့်ဒြပ်စင်များကိုသာ သက်ရောက်မှုရှိသည်။
အကြံပြုချက်- orphans:5 ဆိုသည်မှာ စာမျက်နှာခွဲမှု၏ အထက်တွင် အနည်းဆုံး လိုင်း 5 ကြောင်း မြင်ရပါမည်။
အကြံပြုချက်- စာမျက်နှာတစ်ခု၏ထိပ်တွင်မြင်နိုင်ရမည့်အရာတစ်ခုအတွက် အနိမ့်ဆုံးလိုင်းအရေအတွက်ကို သတ်မှတ်ရန် သို့မဟုတ် ပြန်ပေးရန်အတွက် မုဆိုးမပိုင်ဆိုင်မှုကို ကြည့်ပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
orphans | Yes | Not supported | Not supported | Not supported | Yes |
အထားအသို
မိဘမဲ့ပစ္စည်းများကို ပြန်ပေး
object.style.orphans
မိဘမဲ့ပစ္စည်းများကို သတ်မှတ်ပါ-
object.style.orphans = "number|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | An integer that specifies the minimum number of visible lines. Negative values are not allowed. The default value is 2 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ၂ |
---|---|
ပြန်ပို့တန်ဖိုး- | စာမျက်နှာအောက်ခြေရှိ ပရင့်ထုတ်ရန် အနည်းဆုံး စာကြောင်းအရေအတွက်ကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS2 |
❮ စတိုင်အရာဝတ္ထု