摘要
面向级联变量的CSS自定义属性模块定义了一种用户自定义变量机制,免许CSS属性引用变量的取值,为CSS提供了原生变量支持。通过对CSS自定义属性的使用方法、浏览器支持与兼容性处理进行研究,并将CSS自定义属性应用于响应式布局与网站主题,对CSS自定义属性的优点进行分析与验证,为Web前端响应式布局与网站主题的实现提供一种更好的解决方案。
The CSS custom properties module for cascading variables defines a user-defined variable mechanism allowing CSS properties to reference the value of variables,providing native variables support for CSS.A Research on the method of use of CSS custom properties and browser support and compatibility processing is carried out in this article,and CSS custom properties are applied to responsive layout and website theme to analyze and verify the advantages of'CSS custom properties,providing a better solution for the implementation of Web front-end responsive layout and website theme.
作者
叶文全
YE Wen-quan(Department of Information,Minbei Vocational and Technical College,Nanping 353000,Fujian)
出处
《集宁师范学院学报》
2019年第6期45-49,共5页
Journal of Jining Normal University
基金
福建省中青年教师教育科研项目“闽职院招生宣传微信公众平台开发运营”(JAT171112)