CSSKeywordValue: thuộc tính value
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Thuộc tính value của giao diện CSSKeywordValue trả về hoặc thiết lập giá trị của CSSKeywordValue.
Giá trị
Một chuỗi.
Ngoại lệ
Ví dụ
Ví dụ sau đặt lại thuộc tính CSS display về giá trị mặc định của nó.
js
let indicator = document.getElementById("indicator");
indicator.attributeStyleMap.set("display", new CSSKeywordValue("initial"));
indicator.attributeStyleMap.get("display").value; // 'initial'
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| CSS Typed OM Level 1> # dom-csskeywordvalue-value> |