/* 变量定义 */:root { --main-color: #06c;}/* 变量使用 */#foo h1 { color: var(--main-color);}
来源: http://www.phpxs.com/code/1006067/