移动浏览器不会在网站上显示图像 [英] Mobile Browsers don't display images on website

查看:117
本文介绍了移动浏览器不会在网站上显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建了一个网站,在桌面上看起来非常可靠。 (http://foo.com)使用.htaccess重定向将使用移动浏览器的人发送到子页面(http://foo.com/m.html)。重定向就像一个魅力。

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.

我的问题是移动页面上,任何移动设备上都没有显示一个图像(就此而言,背景颜色)浏览器。我已经尝试重新格式化它(.png,.jpg,.gif),调整它的大小(低至55p x 44p)。它是页面上唯一的图像。我尝试过专门为移动子页面使用css样式表,我尝试过根本不使用样式表,只是将图像放在正文中。什么都行不通。我已经找到了答案,但我能找到的是为什么我的手机上的壁纸没有显示,这根本没有帮助。

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!

推荐答案

我遇到了同样的问题,我做了一个非常简单的页面,里面有一个图像用桌面在那里冲浪是没事的,而去那里用手机让图像看不见,它取代了这个地方,但没有显示,就像能见度:隐藏;
经过一些尝试后,我注意到图像保存在 CMYK 颜色空间中,我已将图像转换为 RGB 色彩空间然后一切顺利。

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.

移动浏览器看不到管理CMYK图像版本......

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

这篇关于移动浏览器不会在网站上显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆