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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,您会找到问题的答案 此处以及相应的演示。
It seems to me that you will find the answer on your question here with the corresponding demo.