Textarea wrap Property
ဥပမာ
ဖောင်တစ်ခုကို တင်သွင်းသည့်အခါ စာသားဧရိယာရှိ စာသားကို မည်ကဲ့သို့ ပတ်ထားရမည်ကို ရှာဖွေပါ-
var x = document.getElementById("myTextarea").wrap;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
wrap ပိုင်ဆိုင်မှုသည် စာသားဧရိယာတစ်ခု၏ wrap attribute ၏တန်ဖိုးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
Wrap attribute သည် ဖောင်တစ်ခုတွင် တင်သွင်းသည့်အခါ စာသားဧရိယာရှိ စာသားကို မည်ကဲ့သို့ ထုပ်ပိုးရမည်ကို ဖော်ပြသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
အထားအသို
ထုပ်ပိုးမှုပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
textareaObject.wrap
ခြုံထည်ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
textareaObject.wrap = soft|hard
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
soft | The text in the text area is not wrapped when submitted in a form. This is default |
hard | The text in the text area is wrapped (contains newlines) when submitted in a form. When "hard" is used, the cols attribute must be specified |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ဖောင်တစ်ခုတွင် တင်သွင်းသည့်အခါ စာသားဧရိယာသည် စာသားကို မည်ကဲ့သို့ ခြုံမည်ကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
---|
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <textarea> wrap attribute
❮ Textarea အရာဝတ္ထု