New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Jv-Juven opened this Issue Mar 11, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@Jv-Juven

Jv-Juven commented Mar 11, 2018

我使用了行内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)
@yoyo837

This comment has been minimized.

Contributor

yoyo837 commented Mar 13, 2018

use css...

This issue is something about webpack load image from html.

@husayt

This comment has been minimized.

Collaborator

husayt commented Mar 13, 2018

please provide details in English

@husayt husayt closed this Mar 13, 2018

@lock

This comment has been minimized.

lock bot commented Nov 4, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.