是否可以在sass变量中定义为原色/副色的颜色上包含不透明度?用lighten($ color,amount)函数的方式?
在Sass中的$ primary-color上设置不透明度\[duplicate\]
第2930篇《在Sass中的$ primary-color上设置不透明度\[duplicate\]》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点
共1个回答
相似问题
问题类别
在Sass中的$ primary-color上设置不透明度\[duplicate\]
是否可以在sass变量中定义为原色/副色的颜色上包含不透明度?用lighten($ color,amount)函数的方式?
第2930篇《在Sass中的$ primary-color上设置不透明度\[duplicate\]》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点
相似问题
问题类别
您可以使用
rgba
,即它也适用于十六进制值
您还可以基于变量值设置颜色的不透明度。例如:
演示版