IE6 只滚动页面一半 - 如何诊断?
我整理了一个网站,通常在 FF、Chrome 和 IE8 上运行良好(是的,我是新手) :
我从我们在日本的办公室听说,他们都使用 IE6,各个页面都无法正常显示,简而言之,当页面应该进一步滚动时,它们会停止滚动 - 滚动余量太短。我已经亲自证实了这一点。
并不是说我找不到一百万个关于 IE6 解决方法的建议,而是如何诊断这个问题?这个有 bug 名称吗?
一个好的诊断将不胜感激 - 现在已经花了几个小时在这上面,但毫无效果,处于撕扯头发的阶段。
I put together a site that generally works well on FF, Chrome and IE8 (yes, I'm new to this):
I heard from our office in Japan who all use IE6 that various pages are not displaying properly, in short they stop scrolling when the page should scroll further - the scroll allowance is too short. I have confirmed this for myself.
Its not that I can't find a million suggestions for IE6 workarounds, but how to diagnose this problem? Is there a bug name for this?
A good diagnosis would be immensely appreciated - have spent hours on this now, to no avail, at tearing-out-hair stage.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您使用“float:xxx”时,浏览器无法正确计算元素的高度/宽度,您必须使用“clear:both”位于浮动框之后的元素。
不要忘记,当您绝对定位元素时,其他元素在定位自己时不会看到它。
jsfiddle 示例:
在第一个示例中,绿色和橙色框在计算位置时看不到红色框,因为它是绝对定位的。
When you use 'float:xxx', browsers can not calculate the height/width of element properly, you have to use 'clear:both' an element that resides after floating box.
Don't forget that when you position the element absolutely, then other elements doesn't look at it while positioning themselves.
Example on jsfiddle:
In first example green and orange boxes doesn't see the red box while calculating positions, because it's positioned absolutely.