【发布时间】:2015-08-13 14:19:34
【问题描述】:
好的,我正在使用 Foundations rem-calc 计算 rem 值,现在我想将每个媒体查询的变量大小减少一个百分比,如下所示:
// This is the default html and body font-size for the base rem value.
$rem-base: 16px !default;
@function rem-calc($values, $base-value: $rem-base) {
$max: length($values);
@if $max == 1 { @return convert-to-rem(nth($values, 1), $base-value); }
$remValues: ();
@for $i from 1 through $max {
$remValues: append($remValues, convert-to-rem(nth($values, $i), $base-value));
}
@return $remValues;
}
$herotitle-size: rem-calc(125.5);
.hero_home .herotitle{
font-size: $herotitle-size / 10%;
}
但它不起作用.... 为什么?
【问题讨论】:
标签: css sass zurb-foundation