gpt4 book ai didi

jquery - 如何在 jqgrid 中的网格标题上设置溢出自动

转载 作者:太空宇宙 更新时间:2023-11-04 12:31:12 25 4
gpt4 key购买 nike

如果 jqgrid 为空,overflow:auto 不应用于标题,但如果记录在 jqgrid 中,overflow:auto 将同时处理记录和标题。

如何在 jqgrid 中将水平滚动设置为在标题和行数据上都很常见,有记录没有记录。

当列数超过 6 时,标题列被截断,此处溢出不起作用。

下面是没有记录的jqgrid的图片。

jqgrid overflow not working on records

下面是带有记录的 Jqgrid 图像。这里的溢出(水平滚动)在标题和行数据上一样常见。

enter image description here

最佳答案

这里有一些方法可以解决你的问题,改变css:

table.ui-jqgrid-btable { height: 1px; padding-bottom: 1px;}

如果你不想要滚动条,你可以这样做:

jqGrid定义中设置autowidth: true, scrollOffset:0,

关于jquery - 如何在 jqgrid 中的网格标题上设置溢出自动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27644509/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com