网格高度和最后一列后的空白区域 [英] grid height and the empty space after the last column
本文介绍了网格高度和最后一列后的空白区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以满足所有这些要求?
Is it possible to comply all these requirements ?
- 无论记录的数量如何,网格的高度均应固定;
- 最后一列之后的右空格将永远不会显示;
- 如果记录数大于网格的高度,则应显示垂直滚动条;
- 永远不会显示水平滚动条;
- 在可能的情况下,可以调整高度,以便在网格底部没有显示一半"的记录.
- with scroll = true
...以及屏幕OUF上的网格数量!
... and whatever the number of grids on screen OUF !
PS:奥列格肯定有答案...
PS: Oleg has surely the answer ...
推荐答案
将此添加到样式表中:
.ui-jqgrid .ui-jqgrid-bdiv thead,div,tbody{
position: relative;
margin: 0em;
padding:0;
/*overflow: auto;*/
overflow-x:hidden;
overflow-y:auto;
text-align:left;
}
作为jqgrid的参数添加:
As parameters to jqgrid add:
scrollOffset: 0,
这篇关于网格高度和最后一列后的空白区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文