厦门网站排名,网络服务类型有哪些,医院网络营销推广方案,公司网站设计思路项目场景#xff1a;
页面的样式重复我想提取出来作为公共样式 新建scss文件#xff0c;然后引入#xff0c;结果样式不生效 问题描述#xff1a;
uniapp官网示例引入css的方法
/* 绝对路径 */
import url(/common/uni.css);
import url(/common/uni.css);
/* 相对路径 …项目场景
页面的样式重复我想提取出来作为公共样式 新建scss文件然后引入结果样式不生效 问题描述
uniapp官网示例引入css的方法
/* 绝对路径 */
import url(/common/uni.css);
import url(/common/uni.css);
/* 相对路径 */
import url(../../common/uni.css);解决方案
正确的引入方法
import /common/common.scss;