scss里定义方法,转换单位
@function px2vw($px, $display) {
@return calc($px / $display) * 100vw;
}
@function fluid($display-max, $display-min, $maxValue, $minValue) {
$x: calc(($maxValue - $minValue) / ($display-max - $display-min));
$y: calc($maxValue - $display-max * $x);
@return calc(#{100 * $x}vw + #{$y}px);
}
.order-options-content-bg {
max-height: px2vw(500, 720);
}

浙公网安备 33010602011771号