具有自动高度的jqGrid;但具有最大高度&滚动条 [英] jqGrid with automatic height; but has a max height & scrollbars

查看:61
本文介绍了具有自动高度的jqGrid;但具有最大高度&滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让jqGrid自动将其高度调整为行数;但是当达到某个高度时,它的高度不能再增加,并且垂直滚动条会增加吗?

Is there any way to get jqGrid to adjust its height automatically to the number of rows; but when a certain height is reached that its height cannot increase anymore and that the vertical scrollbar apprears?

谢谢 D

推荐答案

我建议您在

"max-height"属性将为未被IE6使用,但最近的网络浏览器将使用它.

The "max-height" property will be not used by IE6, but more recent web browsers will use it.

更新:免费的jqGrid在4.10.0版中引入了新属性:maxHeight,其作用与上述完全相同.因此,人们可以只使用maxHeight: 300而不是手动设置父div.ui-jqgrid-bdivmax-height.

UPDATED: Free jqGrid introduce in version 4.10.0 new property: maxHeight which do exactly the same as above. Thus one can just use maxHeight: 300 instead of manual setting of max-height of the parent div.ui-jqgrid-bdiv.

这篇关于具有自动高度的jqGrid;但具有最大高度&滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆