CSSStyleDeclaration getPropertyValue () Yöntemi
❮ CSSStyleBildirim Nesnesi
Örnek
color özelliğinin değerini döndürün:
var declaration = document.styleSheets[0].cssRules[0].style;
var
propvalue = declaration.getPropertyValue("color");
alert(propvalue);
Tanım ve Kullanım
getPropertyValue() yöntemi, belirtilen CSS özelliğinin değerini döndürür.
Tarayıcı Desteği
Method |
|
|
|
|
|
getPropertyValue() |
Yes |
9.0 |
Yes |
Yes |
Yes |
Sözdizimi
object.getPropertyValue(propertyname)
Parametre Değerleri
Parameter |
Description |
propertyname |
Required. A String representing the name of the property to check
|
Teknik detaylar
DOM Sürümü: |
CSS Nesne Modeli |
Geri dönüş değeri: |
Özelliğin değerini temsil eden bir Dize |
❮ CSSStyleBildirim Nesnesi