这就是我所拥有的。基于区域设置更改字体家族
HTML头:
<head lang="<%= I18n.locale %>">
SCSS:
body {
html[lang="en"] & {
font: normal 13px/140% "Helvetica Neue", verdana, arial, helvetica, sans-serif;
}
html[lang="ja"] & {
font: normal 13px/140% "メイリオ", Meiryo, "MS Pゴシック" , MS PGothic, "ヒラギノ角ゴ Pro W3", Hiragino Kaku Gothic Pro, Osaka, sans-serif;
}
}
但SCSS似乎没有工作,它不改变语言环境
这不是一个有效的CSS。你在使用CSS预处理器吗? – 2014-09-02 09:32:27
我正在使用sass/scss。对不起,忘了指定 – galao 2014-09-02 09:35:23