中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

CSSStyleDeclaration getPropertyPriority() 方法

CSS CSSStyleDeclaration CSS CSSStyleDeclaration

實例

返回 color 屬性是否設(shè)置了 "important!" 優(yōu)先級:

var declaration = document.styleSheets[0].cssRules[0].style; var priority = declaration.getPropertyPriority("color"); alert(priority);

運行代碼 ?

定義和使用

getPropertyPriority() 方法返回指定的 CSS 屬性是否設(shè)置了 "important!" 優(yōu)先級。如果返回 "important" 則表明設(shè)置了優(yōu)先級,否則沒有。


瀏覽器支持

方法
getPropertyPriority() Yes 9.0 Yes Yes Yes

語法

object.getPropertyPriority(propertyname)

屬性值

參數(shù) 描述
propertyname 必需。一個字符串,表示要檢測的屬性名。

技術(shù)細(xì)節(jié)

DOM 版本: CSS Object Model
返回值: 字符串, 表示設(shè)置了優(yōu)先級,如果為空則表示沒有設(shè)置優(yōu)先級。

CSS CSSStyleDeclaration CSS CSSStyleDeclaration

其他擴(kuò)展