摘要: 1、css变量的声明 使用--声明变量($被sass用掉了,@被less用掉了) <style> :root { --color: red; } </style> root为根元素,相当于给html设置了css变量 /* :root 相当于 html */ html { --color: red; 阅读全文
posted @ 2022-03-18 20:46 吴小明- 阅读(664) 评论(0) 推荐(0) 编辑