jqgrid获取标题和标题的高度大小 [英] jqgrid get header and caption height size
本文介绍了jqgrid获取标题和标题的高度大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何获得的高度尺寸: 标头标题栏, 以及标题上方标题上方条形图的大小.
How can i get the height size of : header title bar, and the size of the bar above the header , where the caption is.
感谢提前.
推荐答案
在向您提供的另一个答案的小修改
In the answer I described the anotomy of jqGrid elements. Small modification of In another answer to you will give
var mygrid = $("#list");
var header_height=$("thead:first tr.ui-jqgrid-labels", mygrid[0].grid.hDiv).height();
如果 $ .outerHeight 更适合您,您也可以使用 $ .outerHeight ="http://api.jquery.com/height/" rel ="nofollow noreferrer"> $.height .以相同的方式,可以使用以下方式计算字幕高度
You can also use $.outerHeight if it is more suitable for you as $.height. In the same way the caption height can be calculated with
var caption_height=$("div#gview_"+mygrid[0].id+" > div.ui-jqgrid-titlebar").height();
这篇关于jqgrid获取标题和标题的高度大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文