* fix the error of outer box under ie6.

This commit is contained in:
wangchunsheng
2012-03-02 14:06:10 +00:00
parent e0378274e9
commit 25b3c2171c
2 changed files with 9 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
<script laguage='Javascript'>
$().ready(function(){
setDebugWin('white');
setContentHeight();
setOuterBox();
})
<?php if(isset($pageJS)) echo $pageJS;?>
</script>

View File

@@ -425,13 +425,14 @@ function saveWindowSize()
}
/**
* Set content height
* Set Outer box's width and height.
*
* @access public
* @return void
*/
function setContentHeight()
function setOuterBox()
{
var winWidth = window.screen.width;
var winHeight = $(window).height();
var headerH = $('#header').height();
var footerH = $('#footer').height();
@@ -441,6 +442,11 @@ function setContentHeight()
if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) outerH = winHeight - headerH - footerH - 98;
$('.outer').height(outerH);
}
if($.browser.msie && ($.browser.version == "6.0") && !$.support.style)
{
winWidth -= 49;
$('#wrap').width(winWidth);
}
}
/**