Interface IViewCSS
Interface IViewCSS
Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.1.0)
Giao diện này đại diện cho một kiểu CSS.
[DOMNoInterfaceObject]
[DOMObject]
[ComVisible(true)]
public interface IViewCSS : IAbstractView
Triển khai
Phương thức
GetComputedStyle(Element)
Phương thức này được sử dụng để lấy kiểu đã tính toán như được định nghĩa trong CSS2.
[DOMName("getComputedStyle")]
ICSSStyleDeclaration GetComputedStyle(Element element)
Tham số
element
Element
Phần tử mà kiểu của nó sẽ được tính toán. Tham số này không thể là null.
Trả về
Kiểu đã tính toán
GetComputedStyle(Element, string)
Phương thức này được sử dụng để lấy kiểu đã tính toán như được định nghĩa trong CSS2.
[DOMName("getComputedStyle")]
ICSSStyleDeclaration GetComputedStyle(Element element, string pseudoElement)
Tham số
element
Element
Phần tử mà kiểu của nó sẽ được tính toán. Tham số này không thể là null.
pseudoElement
string
Phần tử giả.
Trả về
Kiểu đã tính toán