简体   繁体   English

ExtJS 4 Ext.grid.Panel选择颜色

[英]ExtJS 4 Ext.grid.Panel selection color

I'm using ExtJs 4.1.3 and I have a simple grid (Ext.grid.Panel). 我正在使用ExtJs 4.1.3,并且有一个简单的网格(Ext.grid.Panel)。 I want to change the color of selected rows in that grid from default selection color to "red". 我想将该网格中所选行的颜色从默认选择颜色更改为“红色”。 I prefer do it in css file. 我更喜欢在css文件中执行此操作。 I've already tried solution in other threads (for example this ), but they don't work with extjs 4. 我已经在其他线程中尝试过解决方案(例如this ),但是它们不适用于extjs 4。

This is how is rendered a selected row with extjs 4: 这是使用extjs 4呈现选定行的方式: 降序 Could anyone help me? 有人可以帮我吗?

Try this: 尝试这个:

.x-grid-row-selected .x-grid-cell-inner {
    font-weight: bold;
    background-color:red;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM