页面加载IE8顶部的空格 [英] page loads with space at top in IE8

查看:74
本文介绍了页面加载IE8顶部的空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一些客户在IE8中加载一些网页顶部时看到了很大的差距,但并非所有使用IE8的客户都看到这一点。 
http://www.antidisaster.com/faqs.aspx  其他两个页面似乎有同样的问题,但没有那么糟糕。

Some of my clients see a large gap at the top of some of my web pages when they load it in IE8, but not all clients using IE8 see this.  http://www.antidisaster.com/faqs.aspx Two other pages seem to have the same problem, but not as bad.

推荐答案

在IE8中按F12键显示开发人员工具,选择文档模式==模拟IE7,浏览器模式== 7 ..达达...页面顶部有一个很大的空白处...

In IE8 press F12 to display the Developer Tool, Select Document Mode==Emulate IE7, Browser Mode==7.. Dada... there is a big blank space at the top of your page...

要纠正这个

1。在外部脚本中查找并更正浏览器嗅探userAgent字符串的位置。替换为功能检测任何浏览器嗅探代码。

1. Find and correct in your external scripts where it is browser sniffing the userAgent String. Replace with Feature detection any browser sniffing code.

2。添加表单标签的样式规则... {display:inline!important}或{float:none!important}

2. Add the style rule for form tags... {display:inline!important} or {float:none!important}

(在脚本的某处必须有一些js设置如果IE7在userAgent字符串中,则表单标签的浮动样式规则....因此需要上面的!重要覆盖。

(somewhere in your scripts there must be some js that is setting the float style rule for form tags if IE7 is in the userAgent string.... hence the !important over-ride above is needed.

问候。


这篇关于页面加载IE8顶部的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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