CSS စာသား- ပိုင်ဆိုင်မှု ကို အသွင်ပြောင်းသည်။
ဥပမာ
မတူညီသော <div> ဒြပ်စင်များဖြင့် စာသားကို ပြောင်းပါ-
div.a {
text-transform: uppercase;
}
div.b {
text-transform: lowercase;
}
div.c {
text-transform: capitalize;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
text-transform
ပိုင်ဆိုင်မှုသည် စာသား၏ စာလုံးအကြီးကို ထိန်းချုပ်သည် ။
မူလတန်ဖိုး: | မရှိ |
---|---|
အမွေဆက်ခံသည်- | ဟုတ်တယ် |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.textTransform="စာလုံးကြီး" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
text-transform | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
CSS Syntax
text-transform: none|capitalize|uppercase|lowercase|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
none | No capitalization. The text renders as it is. This is default | |
capitalize | Transforms the first character of each word to uppercase | |
uppercase | Transforms all characters to uppercase | |
lowercase | Transforms all characters to lowercase | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
HTML DOM ရည်ညွှန်းချက်- textTransform ပိုင်ဆိုင်မှု