iOS 6 Safari背景丢失 [英] iOS 6 Safari backgrounds missing

查看:110
本文介绍了iOS 6 Safari背景丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在深入研究问题和搜索引擎,但是可能现在为回答被索引或找到还为时过早。



无论如何,当我正在与我的一个项目合作,突然许多背景图像停止显示。这是在iPad上升级到iOS 6后发生的。



举例来说:

 < td style =background-image:url(https://mysite.com/_itemg_ver1.png); background-repeat:repeat-x; height:24px; width:100px;>一些内容< ; / TD> 

这可能是一些愚蠢的行为,因为并非所有的背景图片都受到影响,令人沮丧的。我很困惑。工作代码示例:

 < td style =width:925px; height:44px; background-color:#ffffff; background-image:url(https://mysite.com/ll_corner_ver1.png); background-repeat:no-repeat; background-position:bottom left;> Some content< / td> 

我试着让代码相同,但仍然是同样的问题。我目前正在调查这些图像,但这并没有什么意义。



预先感谢您的想法/帮助等。

p>

解决方案

来自测试和学习,以及使用photoshop。我使用用于背景图像的png文件看到的问题会变黑。我遇到的所有文件都是1像素宽x某些高度(20和700像素之间)。这些文件在photoshop中也被标记为支持透明度。



根据早期的海报推荐和经验测试所有尺寸的宽度。然而,这并没有解决我所看到的问题。



经过测试后,我注意到(因为我之前没有),所有有问题的文件都是设置为支持透明度。我测试了禁用它,它使所有的差异。

因此,从我所做的,所有文件尺寸与以前明智相同,但支持禁用透明度。

这并不是说iOS 6没有相关的问题和png图像的尺寸,但那不是我解决我的问题的方式看到。

另外请注意,这不仅仅在Safari上。这在iOS 6中也出现在Chrome上。


I have been digging through the questions and search engines, but likely it is just too early for the answers to have been indexed or found.

Anyway, when I was working with one of my projects, suddenly many of the background images stopped showing. This occurred after upgrading to iOS 6 on the iPad.

As an example:

<td style="background-image:url(https://mysite.com/_itemg_ver1.png); background-repeat:repeat-x; height:24px; width:100px;">Some content</td>

It is likely something stupid since not all background images were effected, and that just makes it all the more frustrating. I am confused. Example of working code:

<td style="width:925px; height:44px; background-color:#ffffff; background-image:url(https://mysite.com/ll_corner_ver1.png); background-repeat: no-repeat; background-position:bottom left;">Some content</td>

I have tried making the code 'the same', but still the same problem. I am currently looking into the images somehow being the problem, but that doesn't really make any sense.

Thank you in advance for thoughts/help, etc.

解决方案

From testing and learning, and the use of photoshop.

The problem that I saw with the use of png files that were used for background images, would turn black. All of the files that I had problems with were 1 pixel wide x some height (between 20 and 700 pixels). These files were also marked, within photoshop, to support transparency.

Widths of all sizes were tested, per the earlier poster recommendation and experience. That however did not solve the problem that I was seeing.

After testing that, I noticed (as I hadn't before that point) that all files having the problem were set to support transparency. I tested disabling that and it made all the difference.

So, from what I did, all files were the same size as before dimension wise, but had support for transparency disabled.

This is not to say there isn't a related problem with iOS 6 and the dimensions of the png images, but that was not how I resolved the issue I was seeing.

Also note, this was not only on Safari. This was also seen on Chrome, within iOS 6.

这篇关于iOS 6 Safari背景丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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