如何将背景图像添加到网格行
如何将背景图像添加到网格的一行中?我可以使用下面的代码更改行的颜色,但它不会添加图像?
this.getView().getRowClass = function(record, rowIndex, rowParams, store) {
return record.get("deleted_dts") ? "rowdeleted" : ""
};
CSS:
.row-deleted { background: url("../images/bin.png") no-repeat right center #eeeeee; color: gray; }
谢谢。
How do I add a background image to a row of my grid? I can change the row's colour with the below code but it doesn't add the image?
this.getView().getRowClass = function(record, rowIndex, rowParams, store) {
return record.get("deleted_dts") ? "rowdeleted" : ""
};
The CSS:
.row-deleted { background: url("../images/bin.png") no-repeat right center #eeeeee; color: gray; }
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CSS 选择器必须定位单元格元素 ('td'),而不是行元素 ('tr'):
The CSS selector must target the cell element ('td'), not the row element ('tr'):