background-image in mean.js [英] background-image in mean.js
问题描述
我尝试在到达网页上加入背景图片。我的CSS文件在这里:
I tried to include a background image on my landing page. My CSS file is here:
/modules/core/css/core.css
/modules/core/css/core.css
我的映像文件这里:
/modules/core/img/image.jpg
/modules/core/img/image.jpg
在css文件中,我试过这样做:
In the css file I tried doing this:
背景图片:url(../ img / image.jpg);
background-image: url("../img/image.jpg");
也尝试这样做:
background-image:url(core / img / image.jpg);
background-image: url("core/img/image.jpg");
但是,他们都没有工作或解决方案,我看着这个网站的其他类似的问题。任何人都知道如何解决这个问题?
However, none of them are working or the solutions I looked at this site for other similar questions. Anyone knows how to fix this?
推荐答案
如果CSS /modules/core/css/core.css
,图片为 /modules/core/img/image.jpg
,
背景需要 background-image:url(../ img / image.jpg);
但您确定是 jpg 或 JPG ,有时可以是bug:)
if CSS /modules/core/css/core.css
and image is /modules/core/img/image.jpg
,
background need be background-image: url("../img/image.jpg");
but are you sure is jpg or JPG, sometimes this can be bug :)
这篇关于background-image in mean.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!