使用较少的变量无法输出字体属性 [英] Trouble outputting font property using less variables
本文介绍了使用较少的变量无法输出字体属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的Twitter Bootstrap更少,我有以下内容:
I'm using twitter bootstrap with less and I have the following:
@serifFontFamily: 'Droid Serif', "Georgia", Times, serif;
@baseFontSize: 100%/1.5;
font: @baseFontSize @serfiFontFamily;
它产生:
font: 66.666666667% 'Droid Serif', "Georgia", Times, serif
但我要输出:
font: 100%/1.5 'Droid Serif', "Georgia", Times, serif
有什么提示吗?
推荐答案
您可以使用
@baseFontSize: ~"100%/1.5";
越来越少的人会将其解释为字符串而不是表达式.
and less will interpret it as a string and not as an expression.
这篇关于使用较少的变量无法输出字体属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文