jqGrid 奇淫巧技

 1.新建maven-web项目

  结构如图

 

#GLOBAL_DIGITALMEDIA_SEARCH_grid-table > tbody > tr >td:last-child{
text-align: left !important;
}

#GLOBAL_DIGITALMEDIA_SEARCH_grid-pager #GLOBAL_DIGITALMEDIA_SEARCH_grid-pager_left{
auto !important;
}

jqgrid单元格的内容过长时,用省略号的形式表示,用换行的形式

<style>

.ui-jqgrid tr.jqgrow td {

text-overflow : ellipsis;

}

</style>

用上这个就可以显示成  【啊啊啊啊・・・】这种格式了

要是想换行全部显示的话就用下面的:

<style>

.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
height:auto;
}

</style>

原文地址:https://www.cnblogs.com/slowcity/p/9007105.html