H5实现对应的比例 1、项目使用sass 2、封装方法 @function formatHeight($height) { @return $height / 1334 * 100vh; } @function formatWidth($width) { @return $width / 750 * 100vw; } 3、@import "../../assets/css//fucntion.scss"; 引用对应的文件