ပုံစံ မုဆိုးမ အိမ်ခြံမြေ
ဥပမာ
မုဆိုးမများကို ပြောင်းလဲပြီး ပုံနှိပ်ခြင်း သို့မဟုတ် ပရင့်အကြိုကြည့်ရှုခြင်းအား စစ်ဆေးပါ-
<html>
<head>
<script>
function ChangeWidows()
{
document.getElementById("p1").style.widows = document.getElementById("widows").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
{
.widows
{
widows:2;
}
}
</style>
</head>
<body>
<div class="othercontent">
<input id="widows" value="2">
<button onclick="ChangeWidows();">Change widows</button>
<p style="font-size:120%" id="p1">
Change widows 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>
<div class="othercontent">
</body>
</html>
ကိုယ်တိုင်လုပ်စမ်းပါ »
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
မုဆိုးမ ပိုင်ဆိုင်မှုသည် စာမျက်နှာတစ်ခု၏ ထိပ်တွင် မြင်နိုင်ရမည် (ပုံနှိပ်ခြင်း သို့မဟုတ် ပရင့်အစမ်းကြည့်ရှုခြင်းအတွက်) အနိမ့်ဆုံး လိုင်းအရေအတွက်ကို ပြန်ပေးသည်။
မုဆိုးမပိုင်ဆိုင်မှုများသည် ဘလောက်အဆင့်ဒြပ်စင်များကိုသာ သက်ရောက်မှုရှိသည်။
အကြံပြုချက်- widows:5 ဆိုသည်မှာ စာမျက်နှာခွဲမှုအောက်တွင် အနည်းဆုံး စာကြောင်း 5 ကြောင်း မြင်ရပါမည်။
အကြံပြုချက်- စာမျက်နှာတစ်ခု၏အောက်ခြေတွင်မြင်နိုင်ရမည့်အရာတစ်ခုအတွက် အနည်းဆုံးစာကြောင်းအရေအတွက်ကို သတ်မှတ်ရန် သို့မဟုတ် ပြန်ပေးရန်အတွက် မိဘမဲ့ပိုင်ဆိုင်မှုကို ကြည့်ပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
widows | Yes | Not supported | Not supported | Not supported | Yes |
အထားအသို
မုဆိုးမ ဥစ္စာကို ပြန်ပေး၊
object.style.widows
မုဆိုးမပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.widows = "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 |
❮ စတိုင်အရာဝတ္ထု