CSSStyleDeclaration removeProperty () နည်းလမ်း
ဥပမာ
အရောင်ပိုင်ဆိုင်မှုကို ဖယ်ရှားပါ-
var declaration = document.styleSheets[0].cssRules[0].style;
var
removedvalue = declaration.removeProperty("color");
alert(removedvalue);
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
removeProperty() နည်းလမ်းသည် သတ်မှတ်ထားသော CSS ပိုင်ဆိုင်မှုကို CSS ကြေငြာပိတ်ဆို့ခြင်းမှ ဖယ်ရှားသည်။
Browser ပံ့ပိုးမှု
Method | |||||
---|---|---|---|---|---|
removeProperty() | Yes | 9.0 | Yes | Yes | Yes |
အထားအသို
object.removeProperty(propertyname)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
propertyname | Required. A String representing the name of the property to remove |
နည်းပညာဆိုင်ရာအသေးစိတ်
DOM ဗားရှင်း- | CSS Object Model |
---|---|
ပြန်ပို့တန်ဖိုး- | ဖယ်ရှားထားသော ပစ္စည်း၏ တန်ဖိုးဟောင်းကို ကိုယ်စားပြုသော စာတန်း |
❮ CSSStyle Declaration Object