-
-
leiz 小试身手Lv3
发表于2021-8-5 17:17
楼主
非回填场景通用的隔行变色方法参考:https://bbs.esensoft.com/thread-134685-1-1.html
但是上述方法不适用于回填表格,如果在有回填的表格使用隔行变色的效果,可以在报表自定义样式中写如下脚本:
复制代码效果如图所示:
如果需要首行也变色,可以在报表自定义样式中使用如下脚本:
复制代码效果如图所示:
但是上述方法不适用于回填表格,如果在有回填的表格使用隔行变色的效果,可以在报表自定义样式中写如下脚本:

- <div> #GRID1 .greygrid .grid-cellcontainer .grid-row:nth-child(even){
- background-color: rgba(183, 183, 183, 0.2);
- }
- #GRID1.greygrid .grid-cellcontainer .grid-row:nth-child(1){
- background-color: rgba(183, 183, 183, 0.4);
- } </div>

如果需要首行也变色,可以在报表自定义样式中使用如下脚本:
- #GRID1 .greygrid .grid-cellcontainer .grid-row:nth-child(even){
- background-color: rgba(183, 183, 183, 0.2);
- }
- #GRID1 .greygrid .grid-cellcontainer .grid-row:nth-child(1){
- background-color: rgba(183, 183, 183, 0.4);
- }
