IE6 的格式问题与 IE 6 配合良好
我的网站在 IE 6+ 中运行良好,但在 IE 6 或 IE 5.5 中看起来很奇怪,因为我不能忽略使用 IE6 的用户,因为仍有大约 6% 的流量来自该版本。我期待着有替代者。
经过我的一些研究,我发现通过设置 haslayout 属性,我可以解决格式问题,但我认为自己在 CSS 方面非常差,因此我需要你的帮助来纠正这个问题。
您可以在下面找到网址&你可以在IE6中看到它的行为,以防万一你无法测试,你可以通过查看源代码来检查它,请分享你的建议。
I have my site working perfectly in IE 6+ but it looks weird in IE 6 or IE 5.5, as I can't ignore the users with IE6 because still around 6% of traffic occur from this version. I am looking forward to have the alternate.
With my some research I came to know that by setting haslayout property, I can solve out formatting issue, but I consider myself extremely poor in CSS and hence I need a help of yours to rectify this issue.
You can find the URL below& you can see it's behavior in IE6, just in case if you are unable to test you can check it by viewing the source, please share your suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的代码(default.css):
尝试缩小 95% 到 92% 左右。
您可以像这样使用 IE6 hack:
但我强烈建议学习正确的方法并查看下面的链接来组织 CSS 以实现跨浏览器兼容性:
处理 IE 兼容性的最佳方法是什么问题?
Your code (default.css):
Try shrinking down 95% to like around 92%.
You can use a IE6 hack like so:
But I highly recommend learning the right way and looking at the link below for organizing CSS for cross browser compatibility:
What is the best way to deal with IE compatibility issue?
我会看看你的边框宽度、边距和填充。您的内容似乎被向下推,因为没有足够的水平空间。为了快速检查,请将主容器延长一点,看看内容是否向上移动。
I would look at your border widths, margins and paddings. It looks like your content is being pushed down because there isn't enough horizontal space. For a quick check, make your main container a little longer and see if the content shifts up.