ios 7 browser-kit黑色边框围绕div元素 [英] ios 7 browser-kit black borders around div elements

查看:260
本文介绍了ios 7 browser-kit黑色边框围绕div元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS7的浏览器中出现了一个奇怪的错误,其中黑色线条出现在div元素周围。但是当你放大一个元素,这些线消失。有没有人有一个想法是什么导致这个奇怪的错误?在iOS6中没有出现任何行。
此网址正在发生: http://www.tristanfrencken.com/


$希望有人可以帮助我这个!

解决方案

奇怪的是,这似乎是在元素固定AND具有背景颜色,但仅在IOS7中,而不是如果它有背景图像。我会把它作为一个bug在浏览器中粉碎,但作为一个解决方法,现在你可以使用一个坚实的白色图像,平铺,作为您的标题背景。


I'm getting a strange bug in the browsers in iOS7 where black lines are appearing around div elements. But when you zoom in to an element, these lines are disappearing. Does anyone have an idea what causes this strange bug? In iOS6 there weren't any lines appearing. It's happening on this url: http://www.tristanfrencken.com/

Hopefully someone could help me with this!

解决方案

Bizarrely, this seems to be triggered when an element is fixed AND has a background color, but only in IOS7 and not if it has a background image. I'd chalk it up as a bug in the browser, but as a workaround for now you could use a solid white image, tiled, as your header background.

这篇关于ios 7 browser-kit黑色边框围绕div元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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