أسلوب CSSStyleDeclusion removeProperty ()
مثال
قم بإزالة خاصية اللون:
var declaration = document.styleSheets[0].cssRules[0].style;
var
removedvalue = declaration.removeProperty("color");
alert(removedvalue);
التعريف والاستخدام
تزيل طريقة removeProperty () خاصية CSS المحددة من كتلة إعلان CSS.
دعم المتصفح
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 |
---|---|
قيمة الإرجاع: | سلسلة تمثل القيمة القديمة للممتلكات التي تمت إزالتها |
❮ كائن CSSStyleDeclusion