CSSMathInvert: hàm khởi tạo CSSMathInvert()

Khả dụng hạn chế

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Hàm khởi tạo CSSMathInvert() tạo một đối tượng CSSMathInvert mới biểu thị một CSS calc() được sử dụng dưới dạng calc(1 / value).

Cú pháp

js
new CSSMathInvert(arg)

Tham số

arg

Một CSSNumericValue.

Ngoại lệ

RangeError

Được ném ra nếu arg là 0 hoặc -0.

Ví dụ

Sẽ được thêm.

Thông số kỹ thuật

Thông số kỹ thuật
CSS Typed OM Level 1
# dom-cssmathinvert-cssmathinvert

Tương thích trình duyệt