Skip to content

请问如何在项目中使用background 属性设置背景图片,重点是路径怎么写。 #2781

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

Open
dph229563 opened this issue Nov 22, 2019 · 6 comments

Comments

@dph229563
Copy link

请问如何在项目中使用background 属性设置背景图片,重点是路径怎么写。

@weiweidong1993
Copy link

background-image:url(路径)

@sunpu007
Copy link

vuejs/vue-loader#481

@weiweidong1993
Copy link

haode

@linyi3344
Copy link

linyi3344 commented May 17, 2021

background-image:url('../../assets/xxx.png');
这样还不生效的话,设置一下publicPath

@443158068
Copy link

Why is it not working when I set it

@443158068
Copy link

为什么我设置了,却不生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants