wxss 中url()如果使用'//xxxx'的格式会使用http,audit
发布于 5 年前 作者 taosong 9776 次浏览 来自 官方Issues

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

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

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

1 回复

写在wxml的style里。

回到顶部