@use "sass:math"; $vw_base: 750; //设计稿宽度 @function vw($px) { // @return ($px / $vw_base) * 100vw; @return (math.div( $px , $vw_base ))*100vw; }