stylus全局变量怎么使用
同文件中:
$bgc=#fff .test background-color $bgc
不同文件,假定全局变量定义在common.styl中:
common.styl
$bgc=#fff
如在index.styl中使用:
index.styl
@import 'common.styl' .test background-color $bgc
1.2m questions
2.1m answers
5 comments
56.5k users