摘要: 在市容市政项目中,计算jqgrid的自适应高度时,发现jQuery(window).height()和jQuery(document).height()的数值有差异。最初使用的是jQuery(document).height()比jQuery(window).height()的值大。$(window).height(); //为当前可见区域$(document.body).height(); //body的高度网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: documen... 阅读全文
posted @ 2014-01-02 09:40 魏朝辉 阅读(248) 评论(0) 推荐(0) 编辑