wxss 中url()如果使用'//xxxx'的格式会使用http,audit

发布于 7 年前作者 taosong9954 次浏览最后编辑 7 年前来自 issues

如果在wxss中使用了简写,比如

  background-image: url(//mp.nenuyouth.com/img/weather/C3-layer3.png)

则至少在开发者工具上,会默认为http请求,从而使audit中的https请求不通过。

1 回复
jing42
jing421 楼5 年前

写在wxml的style里。