我认为这个问题是在你的CenterWindow
和CloseWindow
职能范围内common.js
:
function CenterWindow(controlMain, controlWindow)
{
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = controlWindow.height();
var popupWidth = controlWindow.width();
controlWindow.css(
{
"position": "absolute",
"top": windowHeight/2-popupHeight/2,
"left": windowWidth/2-popupWidth/2
});
controlMain.css(
{
"height": windowHeight
});
}
function CloseWindow(controlMain, controlWindow)
{
controlMain.css(
{
"opacity": "1"
});
controlWindow.fadeOut('fast');
controlMain.fadeIn('fast');
}
页面加载时,CenterWindow
(通过OpenWindow
)被调用,以显示包含“正在载入”消息股利。稍后,调用CloseWindow
来移除此“加载”格。在CenterWindow
的末尾,您将controlMain
(恰好是ID为divMain
的div)的高度设置为浏览器窗口高度。但是,CloseWindow
不会将divMain
div的高度恢复到“加载”div打开之前的高度。
修复方法是线
controlMain.css(
{
"height": ""
});
添加的CloseWindow
结束。这将删除在divMain
上设置的临时高度。
我无法解释为什么只有IE7/IE8出现这种行为。但是,我能够重现您的问题并确认我的建议可以解决问题。
http://validator.w3.org/ – reisio 2010-07-11 02:51:29
为了向您提供以下答案,我必须花费相当多的时间在上面链接的页面上浏览所有HTML/CSS/JS,如同其他任何想要的人一样来帮你。您可以通过向我们提供* Short,Self-Contained Correct Example *来帮助我们:http://homepage1.nifty.com/algafield/sscce.html。 – 2010-07-11 18:43:31
对不起,我无法提供一个小例子。我只是不知道问题出在哪里,所以我不能减少代码,因为我不知道哪个文件导致了问题。 – Alvos 2010-07-12 00:00:20