找到你要的答案

Q:CSS background-image not showing on Mobile browsers

Q:CSS背景图像不显示在移动浏览器

Im am working on a site that has to be fully responsive. if I resize down the window of my chrome browser, everything seems to be ok. but when trying it on a real mobile browser, everything is awful, my css images don't even show up. Thanks! oh, the site is here: www.interiorama.mx

Im am working on a site that has to be fully responsive. if I resize down the window of my chrome browser, everything seems to be ok. but when trying it on a real mobile browser, everything is awful, my css images don't even show up. Thanks! oh, the site is here: www.interiorama.mx

answer1: 回答1:

Your css file is looking for the images on localhost: on line 148 and 166

url(http://localhost:8888/eli/wp-content/uploads/2015/06/Woods-Silla-Cafe-01.jpg)

Try changing that to your server's location: http://interiorama.mx/wp-content/uploads/2015/06/Pisos-Creativos-8.jpg and http://interiorama.mx/wp-content/uploads/2015/06/Woods-Silla-Cafe-01.jpg.

你的CSS文件是寻找本地的图像:在148线和166

url(http://localhost:8888/eli/wp-content/uploads/2015/06/Woods-Silla-Cafe-01.jpg)

试着改变你的服务器的位置:http://interiorama.mx/wp-content/uploads/2015/06/pisos-creativos-8.jpg和http://interiorama.mx/wp-content/uploads/2015/06/woods-silla-cafe-01.jpg。

answer2: 回答2:

You should also make sure that you're fully committed to making your website mobile friendly because it won't magically resize perfectly from desktop mode to mobile. I found this article pretty helpful for me when I was making my website. It gives a lot of suggestions on sizing to make your website mobile friendly. http://www.sitepoint.com/10-ways-make-website-mobile-friendly/

您还应该确保您完全致力于使您的网站移动友好,因为它不会神奇地调整完美的桌面模式到移动。当我制作网站时,我发现这篇文章对我很有帮助。它给了很多建议,大小使您的网站移动友好。http://www.sitepoint.com/10-ways-make-website-mobile-friendly/

html  css  css3  mobile  background