套件 | mx.styles |
類別 | public class CSSCondition |
繼承 | CSSCondition Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
相關 API 元素
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
kind : String [唯讀]
The kind of condition this instance represents. | CSSCondition | ||
specificity : int [唯讀]
Calculates the specificity of a conditional selector in a selector
chain. | CSSCondition | ||
value : String [唯讀]
The value of this condition without any CSS syntax. | CSSCondition |
公用方法
方法 | 定義自 | ||
---|---|---|---|
Constructor. | CSSCondition | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Determines whether this condition matches the given component. | CSSCondition | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
Returns a String representation of this condition. | CSSCondition | ||
會傳回指定之物件的基本值。 | Object |
屬性詳細資訊
kind | 屬性 |
specificity | 屬性 |
specificity:int
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Calculates the specificity of a conditional selector in a selector chain. The total specificity is used to determine the precedence when applying several matching style declarations. id conditions contribute 100 points, pseudo and class conditions each contribute 10 points. Selectors with a higher specificity override selectors of lower specificity. If selectors have equal specificity, the declaration order determines the precedence (i.e. the last one wins).
實作
public function get specificity():int
value | 屬性 |
建構函式詳細資料
CSSCondition | () | 建構函式 |
方法詳細資訊
matchesStyleClient | () | 方法 |
public function matchesStyleClient(object:IAdvancedStyleClient):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Determines whether this condition matches the given component.
參數
object:IAdvancedStyleClient — The component to which the condition may apply.
|
Boolean — true if component is a match, otherwise false.
|
toString | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z