css零到一高级教程023:CSS 覆盖变量

用局部变量覆盖全局变量

从上一页我们了解到,可以在整个文档中访问/使用全局变量,而局部变量只能在声明它的选择器内使用。

请看上一页中的例子:

实例








使用 var() 函数

Welcome to Shanghai!

Shanghai is one of the four direct-administered munic

你可能感兴趣的:(css零到一,css,html,前端)