Sass根据图片比例,动态设置高度 Sass .img{ $width: 100%; width: $width; height: ($width * 0.3) } 12345 .img{ $width: 100%; width: $width; height: ($width * 0.3)} 扫码领红包 公众号 头条号