Interface IViewCSS

Interface IViewCSS

Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.1.0)

此接口表示一个 CSS 视图。

[DOMNoInterfaceObject]
[DOMObject]
[ComVisible(true)]
public interface IViewCSS : IAbstractView

实现

IAbstractView

方法

GetComputedStyle(Element)

此方法用于获取根据 CSS2 定义的计算样式。

[DOMName("getComputedStyle")]
ICSSStyleDeclaration GetComputedStyle(Element element)

参数

element Element

要计算样式的元素。此参数不能为空。

返回值

ICSSStyleDeclaration

计算样式

GetComputedStyle(Element, string)

此方法用于获取根据 CSS2 定义的计算样式。

[DOMName("getComputedStyle")]
ICSSStyleDeclaration GetComputedStyle(Element element, string pseudoElement)

参数

element Element

要计算样式的元素。此参数不能为空。

pseudoElement string

伪元素。

返回值

ICSSStyleDeclaration

计算样式

另见

IAbstractView

 中文