viewConfig:{
                   rowOverCls : 'my-row-over',//鼠标移过的行样式
                     selectedRowClass : "my-row-selected",//选中行的样式
                     getRowClass : function(record,rowIndex,rowParams,store){  //指定行的样式
                       if(rowIndex <=2){
                        return "my-row";
                       }
                      }
                 },

在相应的页面:

  <style type="text/css">
    .my-row{background-color: red}
    </style>

相关文章:

  • 2021-04-15
  • 2022-12-23
  • 2021-10-06
  • 2022-01-01
  • 2021-09-19
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案