保持突出显示的单元格的背景色

时间:2015-10-21 03:32:33

标签: handsontable

当突出显示插件被激活时,Handsontable会覆盖单元格的背景颜色,如this image所示。

突出显示时有没有办法保持背景色?

Example result

2 个答案:

答案 0 :(得分:0)

如果没有代码,您很难看到自己在做什么,但实际上,您必须在css规则中使用!important标记。例如,如果您的td上有一条规则将背景变为粉红色,那么您将执行以下操作:

td.pinkCell {
    background-color:pink!important;
}

这将确保突出显示不会覆盖您的属性。

答案 1 :(得分:0)

.handsontable .currentRow { 
    background-color: rgba(225, 250, 255, 1);
} 
.handsontable .currentCol { 
    background-color: rgba(225, 250, 255, 1);
} 

目的是能够在此完成。谢谢你的回答。

相关问题