简体   繁体   中英

Background image is not showing in chrome

so background image is not showing in chrome, but it's showing on all other browsers. 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.

I found out that text-indent was set too extreme.

I had text-indent: -999999999px; or something mad.

I changed it to 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

2/ Well this is interesting;

In Chrome right click, go to 'Inspect element' (very useful tool btw) you will see this:

<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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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