本文介绍了jqgrid交替行背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我可以为奇数行应用自定义背景颜色。我的代码要做的是

  $(tr.jqgrow:odd)css(background,#FCF9E6 ); 

在loadComplete上,我正在执行此代码。默认情况下,鼠标悬停和选择一行,我得到的背景颜色为黄色,只有偶数行,而不是奇数行。如何应用自定义背景颜色与鼠标悬停&

解决方案

任何人都可以帮助我吗? >在我看来,你会发现你的问题的答案以及相应的。


Currently I am able to apply custom background color for odd number rows. My code to do is

$("tr.jqgrow:odd").css("background", "#FCF9E6");

on loadComplete, i am executing this code. By default on mouse over and on select of a row, I am getting background color as yellow only for even numbered rows not for odd numbered rows. How to apply custom background color along with mouse over & row selection background color functionality?

Can anyone help me?

解决方案

It seems to me that you will find the answer on your question here with the corresponding demo.

这篇关于jqgrid交替行背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 03:41