摘要: JS: $("body").css("width", $(window).width()); CSS: body{ overflow-x: hidden;} 同理table $(".tableMain").css("width", $(".tableMainHead").css("width")); 阅读全文
posted @ 2016-05-23 22:27 vagebird 阅读(206) 评论(0) 推荐(0) 编辑
摘要: /* 取窗口滚动条高度 */function getScrollTop(){ var scrollTop=0; if(document.documentElement&&document.documentElement.scrollTop) { scrollTop=document.document 阅读全文
posted @ 2016-05-23 15:36 vagebird 阅读(10136) 评论(0) 推荐(0) 编辑
摘要: //js 兼容各浏览器 var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; //height var w = window.innerWidth || d 阅读全文
posted @ 2016-05-23 15:11 vagebird 阅读(106) 评论(0) 推荐(0) 编辑
摘要: <iframe src="index.html" id="iframepage" name="iframepage" frameBorder=0 scrolling=no width="100%" onLoad="reinitIframeEND();"> </iframe><script type= 阅读全文
posted @ 2016-05-23 15:10 vagebird 阅读(141) 评论(0) 推荐(0) 编辑