ပုံစံ transformOrigin Property
ဥပမာ
လှည့်ပတ်ထားသော ဒြပ်စင်တစ်ခု၏ အခြေခံနေရာချထားမှုကို သတ်မှတ်ပါ-
document.getElementById("myDIV").style.transformOrigin = "0 0";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
transformOrigin ပိုင်ဆိုင်မှုသည် သင့်အား ပြောင်းလဲထားသော ဒြပ်စင်များပေါ်တွင် အနေအထားကို ပြောင်းလဲနိုင်စေပါသည်။
2D အသွင်ပြောင်းသည့်ဒြပ်စင်သည် ဒြပ်စင်၏ x- နှင့် y-ဝင်ရိုးကို ပြောင်းလဲနိုင်သည်။ 3D အသွင်ပြောင်းသည့်ဒြပ်စင်သည် ဒြပ်၏ z-ဝင်ရိုးကိုလည်း ပြောင်းလဲနိုင်သည်။
မှတ်ချက်- ဤပိုင်ဆိုင်မှုကို အသွင်ပြောင်း ထားသော ပိုင်ဆိုင်မှုနှင့် တွဲသုံးရပါမည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
transformOrigin | 36.0 | 10.0 9.0 msTransformOrigin |
16.0 | 9.0 | 23.0 |
အထားအသို
transformOrigin ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.transformOrigin
transformOrigin ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.transformOrigin = "x-axis y-axis z-axis|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
x-axis | Defining where the view is placed at the x-axis. Possible values:
|
y-axis | Defining where the view is placed at the y-axis. Possible values:
|
z-axis | Defining where the view is placed at the z-axis (for 3D transforms). Possible values:
|
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | 50% 50% 0 |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ အသွင်ပြောင်း-မူလပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
JavaScript Style Object- ပိုင်ဆိုင်မှုကို အသွင်ပြောင်းသည် ။
CSS ရည်ညွှန်းချက်- အသွင်ပြောင်း-မူရင်း ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု