Home

Issue: 2993

通过html行内样式css的background-image属性无法正确引用图片

[issue link]

我使用了行内css的background-image属性,代码如下:

<div style="background-image: url(~assets/images/1.jpg)"></div>

报错:

GET http://localhost:3000/~assets/images/1.jpg 404 (Not Found)

这种情况,请问如何解决?

This question is available on Nuxt.js community (#c2594)