Safari浏览器中不显示jpg图像(iPhone 3GS和iPod) [英] jpg image not displaying in safari (iphone 3gs and ipod)

查看:317
本文介绍了Safari浏览器中不显示jpg图像(iPhone 3GS和iPod)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这张图片: " http://interstatic01.gameloft.com/igp/videos/images /d9/end_screen_71.jpg " 在这个非常简单的html中,不会显示标题中提到的2种设备.

I have this image : "http://interstatic01.gameloft.com/igp/videos/images/d9/end_screen_71.jpg" In this very simple html, it doesn't display for the 2 devices mentioned in the title.

 <!DOCTYPE html>
 <html>
<head>

</head>
<body>
    <div ><!-- it may show full image depending on browsers, eg: firefox  -->
        <img src="https://i.stack.imgur.com/nXxT5.jpg"   />
    </div>              
</body>
</html>

注意:如果我直接在野生动物园浏览器的网址栏中输入网址,则可以看到它. 它只是在标签中或设置为CSS背景时才会发生

Note: if i enter the url directly in the url bar of the safari browser, i can see it. It just happens when it is in a tag or when set as css background

推荐答案

图像只是

The image is simply too large for these devices (see the Know iOS Resource Limits section). You need to serve a smaller image for these devices (how this is done is a different question to which I don't know the answer).

威廉·马龙(William Malone)具有最大图像尺寸计算器,您可以输入图像尺寸,并告诉您哪些设备可以显示该尺寸的图像.

William Malone has a Maximum Image Size Calculator that allows you to enter an image size and it tells you which devices are capable of displaying an image of that size.

这篇关于Safari浏览器中不显示jpg图像(iPhone 3GS和iPod)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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