أسلوب CSSStyleDeclusion getPropertyValue ()
❮ كائن CSSStyleDeclusion
مثال
إرجاع قيمة خاصية اللون:
var declaration = document.styleSheets[0].cssRules[0].style;
var
propvalue = declaration.getPropertyValue("color");
alert(propvalue);
التعريف والاستخدام
ترجع طريقة getPropertyValue () قيمة خاصية CSS المحددة.
دعم المتصفح
Method |
|
|
|
|
|
getPropertyValue() |
Yes |
9.0 |
Yes |
Yes |
Yes |
بناء الجملة
object.getPropertyValue(propertyname)
قيمه المعامل
Parameter |
Description |
propertyname |
Required. A String representing the name of the property to check
|
تفاصيل تقنية
إصدار DOM: |
نموذج كائن CSS |
قيمة الإرجاع: |
سلسلة تمثل قيمة الممتلكات |
❮ كائن CSSStyleDeclusion