简体   繁体   English

我可以在布尔玛中使用新的CSS自定义属性(变量)吗?

[英]Can I use the new CSS Custom Properties (Variables) with Bulma?

Bulma uses Sass variables . Bulma使用Sass变量 I watched a tutorial about CSS variables and they have features I would like to use. 我看了一个有关CSS变量的教程,它们具有我想使用的功能。 Can I use CSS variables with Bulma? 我可以在布尔玛中使用CSS变量吗?

I'm new to web development and deciding now whether to use Bulma in a Node.js project. 我是Web开发的新手,现在决定是否在Node.js项目中使用Bulma。

Reference: What is the difference between CSS variables and preprocessor variables? 参考: CSS变量和预处理器变量之间有什么区别? | | CSS-Tricks CSS-技巧

Yeah. 是啊。 You can. 您可以。 Although css variables is not supported by all browsers. 尽管并非所有浏览器都支持css变量。 Use caniuse.com to check the available browsers it is supported on and also the usage percentage in your country 使用caniuse.com检查支持的可用浏览器以及您所在国家/地区的使用百分比

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM