美文网首页
jqgrid 单元格内容换行

jqgrid 单元格内容换行

作者: 悠悠神代不曾闻 | 来源:发表于2017-06-22 13:18 被阅读171次

加入一段样式即可
显示全部 超过换行
.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
height:auto;
padding-top:2px;
word-break:break-all;
}

不显示全部,超出用·····表示
<style>
.ui-jqgrid tr.jqgrow td {

text-overflow : ellipsis;
}
</style>

相关文章

网友评论

      本文标题:jqgrid 单元格内容换行

      本文链接:https://www.haomeiwen.com/subject/recfcxtx.html