我認爲這個問題是在你的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