日期:2014-05-17 浏览次数:20649 次
//初始化判断分辨率 获取滚动条
function resolutionRatio(){
var dw = 1280;
var dh = 720;
var fw = window.screen.width;
var fh = window.screen.height;
if(fw<dw||fh<dh){
document.getElementById("mainFrameDiv").style.overflow="scroll";
}else{
document.getElementById("mainFrameDiv").style.overflow="hidden";
}
}
<script language="javascript">
parent.document.all("框架ID名").style.height=document.body.scrollHeight;
parent.document.all("框架ID名").style.width=document.body.scrollWidth;
</script>