css3 var variable

Zhangxin Xu - Learn css3 variables: https://www.zhangxinxu.com/wordpress/2016/11/css-css3-variables-var/

 scenes to be used:

1. css uniform value set by the variable

Variable definitions natively CSS syntax is: --*variable using the syntax is: var(--*)which *represents our variable names.

2 . Pass parameters to css in html

--Color by acquiring property in css, we can achieve to pass parameters from html css label, not only inline styles that can take arguments, equally, a separate css file as well.

 

Guess you like

Origin www.cnblogs.com/shuhaonb/p/11269513.html