1.新建maven-web项目

  结构如图

 

 

jqGrid 奇淫巧技

 

 

#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{
width: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>

<style>

.ui-jqgrid tr.jqgrow td {

text-overflow : ellipsis;

}

</style>

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

 

 

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

<style>

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

</style>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2021-09-21
猜你喜欢
  • 2021-06-21
  • 2021-04-13
  • 2021-04-08
  • 2022-02-23
  • 2022-03-01
相关资源
相似解决方案