IViewCSS.GetComputedStyle

GetComputedStyle(Element)

此方法用于获取在 CSS2. 中定义的计算样式

public ICSSStyleDeclaration GetComputedStyle(Element element)
范围类型描述
elementElement要计算其样式的元素。此参数不能为空。

返回值

计算风格

也可以看看


GetComputedStyle(Element, string)

此方法用于获取在 CSS2. 中定义的计算样式

public ICSSStyleDeclaration GetComputedStyle(Element element, string pseudoElement)
范围类型描述
elementElement要计算其样式的元素。此参数不能为空。
pseudoElementString伪元素。

返回值

计算风格

也可以看看