This article is mainly on the Jqgrid with the size of the window to adapt to the size of the sample code for a detailed introduction, the need for friends can come to the reference, I hope to help you.
The first type of: Jqgrid varies with the window size adaptive width code is as follows: $ (function () { $ (window). Resiz E (function () { $ ("#listId"). Setgridwidth ($ (window). width ()); }); &NBSP}); The second: The code is as follows: Window.onresize = function _doresize () { va R ss = pageSize (); $ ("#listId"). Jqgrid (' Setgridwidth ', SS. WINW-10). Jqgrid (' Setgridheight ', SS. WINH-200); &NBSP} function pageSize () { var winw, winh; if (window.innerheight) { All except ie  WINW = window.innerwidth; winh = window.innerheight; } else if (document.documentelement && document.documentElement.clientHeight) {//IE 6 Strict Mode win W = document.documentelement.clientwidth; winh = document.documentelement.clientheight; } else if (docUment.body) {//other  WINW = document.body.clientwidth; winh = Document.body.clien theight; } //for small pages and total size less then the viewport return {WINW:WINW, Wi nh:winh}; }