We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MDN: https://developer.mozilla.org/en-US/docs/Web/API/CSS_Properties_and_Values_API
CSS Properties and Values用于为CSS扩展属性,
和CSS variables有类似点,但后者只是一个变量,没有CSS属性之特性:比如继承特性。
CSS variables
属性和值的定义描述。
syntax选项标识了值的预期语法,如<color>。
<color>
创建自定义css属性。
示例:https://taoliujun.github.io/example/web-api/CSS_Properties_and_Values_API/index.html
registerProperty
.parent1 .item1
.parent1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CSS Properties and Values
CSS Properties and Values用于为CSS扩展属性,
接口
CSSPropertyRule
属性和值的定义描述。
方法
registerProperty
创建自定义css属性。
示例
示例:https://taoliujun.github.io/example/web-api/CSS_Properties_and_Values_API/index.html
registerProperty
注册了非继承的属性,所以.parent1 .item1
并未继承.parent1
中设置的属性值,而使用了默认值。The text was updated successfully, but these errors were encountered: