取得窗口大小 兼容所有浏览器的js代码
取得窗口大小的代码: 实现代码如下: var pageWidth = window.innerWidth, var pageHeight = window.innerHeight; if(typeof pageWidth != "number"){ if(document.compatMode ==
取得窗口大小的代码: 实现代码如下: var pageWidth = window.innerWidth, var pageHeight = window.innerHeight; if(typeof pageWidth != "number"){ if(document.compatMode ==
实现代码如下: function setHeight() { var PageHeight=$("oPage").scrollHeight var MaxHeight=507 if(PageHeight>MaxHeight) { $("oPageMain").style.height=$("
实现代码如下://======需引用jquery框架======// //返回当前页面高度 function pageHeight(){ if($.browser.msie){ return document.compatMode == "CSS1Compat"? document.document