简体   繁体   English

jqgrid-单元格未隐藏溢出文本

[英]jqgrid - cell is not hiding overflowing text

I am using jqgrid plugin 4.6.0. 我正在使用jqgrid插件4.6.0。 The cell is not hiding the overflowing text either during normal display or during column resize. 在正常显示过程中或在调整列大小时,单元格都不会隐藏溢出的文本。 Please see the image below, 请看下面的图片,

在此处输入图片说明

This issue is not occurring with jqgrid 4.5.2. jqgrid 4.5.2不会发生此问题。 Is there any setting available in latest version of plugin to avoid cell data wrapping? 最新版本的插件中是否有任何可用设置,以避免单元数据包装?

Note: Header column is working as expected. 注意:“标题”列按预期工作。 The Actual text was 'Created On' and upon resize, it is hiding the overflow text. 实际文本被“创建于”,并且在调整大小时,它隐藏了溢出文本。

Here is the CSS in IE Debugger mode: 这是IE调试器模式下的CSS:

在此处输入图片说明

I recommend you to use Developer Tools of IE/Chrome/Firefox to verify why the CSS rule will be overwrite in your environment 我建议您使用IE / Chrome / Firefox的开发人员工具来验证为什么CSS规则将在您的环境中被覆盖

.ui-jqgrid tr.jqgrow td {
    font-weight: normal;
    overflow: hidden;
    white-space: pre; /* this one */
    height: 22px;     /* and this one */
    padding: 0 2px 0 2px;
    border-bottom-width: 1px;
    border-bottom-color: inherit;
    border-bottom-style: solid;
}

I suppose that you have conflicts with some other CSS which you included on the HTML page. 我想您与HTML页面中包含的其他CSS有冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM