Mobile Browsers don't display images on website

元气小坏坏 提交于 2019-12-11 13:31:20

问题


Created a website, looks pretty solid on the desktop. (http://foo.com) Used an .htaccess redirect to send those using mobile browsers to subpage (http://foo.com/m.html). Redirect is working like a charm.

My problem is that one image (and for that matter, the background color) doesn't display on the mobile page, on any mobile browser. I've tried reformatting it (.png, .jpg, .gif), resizing it (down to 55p x 44p). It is the only image on the page. I've tried using a css stylesheet specifically for the mobile subpage, I've tried not using a stylesheet at all and simply putting the image in the body. Nothing works. I've searched for an answer but all I can find is 'why doesn't my wallpaper display on my mobile phone', which doesn't help at all.

Anyway, if someone knows what I'm doing wrong, I'd really appreciate it. Thanks all!


回答1:


I've got the same problem, I've done a very simple page, with a single image inside, surfing there with desktop was all right, while going there with a mobile makes the image invisible, it takes the place, but without display, like with "visibility:hidden"; after some tries, i've noticed that the image was saved in a CMYK color space, I've converted the image in RGB color space and then all goes right.

mobile browsers seeams to not manage the CMYK image versions...




回答2:


Look at CSS part:

background-image:('background.gif')

Do You think all is OK here? Because I think it's not...

https://developer.mozilla.org/en/CSS/background-image



来源:https://stackoverflow.com/questions/5687733/mobile-browsers-dont-display-images-on-website

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!