简体   繁体   English

chrome未显示背景图片

[英]Background image is not showing in chrome

so background image is not showing in chrome, but it's showing on all other browsers. 因此背景图片未在Chrome中显示,而是在所有其他浏览器中显示。 I got background image and background color, but neather color nor image is showing up in chrome. 我得到了背景图片和背景色,但铬色和黑色都没有出现。 It show's up perfectly on all other browsers, what could be the problem? 它在所有其他浏览器上都能完美显示,这可能是什么问题?

You can see the website here Here 你可以在这里看到网站

I had a problem where my background image was written properly in the CSS code but didn't display. 我有一个问题,我的背景图片正确地用CSS代码编写了,但没有显示。

I found out that text-indent was set too extreme. 我发现text-indent设置得太极端了。

I had text-indent: -999999999px; 我有text-indent: -999999999px; or something mad. 或发疯的东西。

I changed it to text-indent: -99999px; 我将其更改为text-indent: -99999px; and now the background image displays properly. 现在背景图片可以正确显示。

Hope that helps someone. 希望能对某人有所帮助。

1/ Could be your problem if this is the intended image, Error: nothing found: Link 1 /如果这是预期的图像,可能是您的问题,错误:未找到任何内容: 链接

2/ Well this is interesting; 2 /这很有趣;

In Chrome right click, go to 'Inspect element' (very useful tool btw) you will see this: 在Chrome中单击鼠标右键,转到“检查元素”(非常有用的工具),您将看到以下内容:

<body class="home page page-id-2 page-template page-template-template-homepage-style2-
php top" style="background: none; background-image: 
url('http://buenavistabistro.drivenmodels.net/wp-content/themes/bordeaux/images/homepage-bg.JPG'); background-repeat: repeat-x; background-color: #0056C5;">

'http://buenavistabistro.drivenmodels.net/wp-content/themes/bordeaux/images/homepage-bg.JPG' is currently the background image for the homepage and it is just a tall thin plain white box “ http://buenavistabistro.drivenmodels.net/wp-content/themes/bordeaux/images/homepage-bg.JPG”目前是主页的背景图像,它只是一个高而细的纯白框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM