ပုံစံ စကားလုံးSpacing Property
ဥပမာ
<p> ဒြပ်စင်တစ်ခုရှိ စကားလုံးများကြား နေရာကို 50 ပစ်ဇယ်အဖြစ် သတ်မှတ်ပါ-
document.getElementById("myP").style.wordSpacing = "50px";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
wordSpacing ပိုင်ဆိုင်မှုသည် စာသားတစ်ခုရှိ စကားလုံးများကြားအကွာအဝေးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
အကြံပြုချက်- စာသားတစ်ခုရှိ အက္ခရာများကြား အကွာအဝေးကို သတ်မှတ်ရန် သို့မဟုတ် ပြန်ပေးရန်အတွက်၊ letterSpacing ပိုင်ဆိုင်မှုကို အသုံးပြုပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
WordSpacing | Yes | Yes | Yes | Yes | Yes |
အထားအသို
wordSpacing property ကို ပြန်ပေးပါ။
object.style.wordSpacing
wordSpacing ကို သတ်မှတ်ပါ ။
object.style.wordSpacing = "normal|length|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
normal | Defines normal spacing between words. This is default |
length | Specifies the space between words in length units. Negative values are allowed |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ပုံမှန် |
---|---|
ပြန်ပို့တန်ဖိုး- | စာသားရှိ စကားလုံးများကြား နေရာလွတ်ကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS1 |
နောက်ထပ် ဥပမာများ
ဥပမာ
အနုတ်လက္ခဏာတန်ဖိုးများကို အသုံးပြုခြင်း-
document.getElementById("myP").style.wordSpacing = -3px";
ဥပမာ
<p> ဒြပ်စင်တစ်ခု၏ စကားလုံးအကွာအဝေးကို ပြန်ပေးပါ။
alert(document.getElementById("myP").style.wordSpacing);
ဥပမာ
letterSpacing property နှင့် wordSpacing property အကြား ကွာခြားချက်-
function changeLetters() {
document.getElementById("myP1").style.letterSpacing = "15px";
}
function changeWords() {
document.getElementById("myP2").style.wordSpacing = "15px";
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
CSS ရည်ညွှန်းချက်- စကားလုံးအကွာအဝေး ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု