【问题标题】:Keep background color on highlighted cells在突出显示的单元格上保留背景颜色
【发布时间】:2015-11-25 15:22:22
【问题描述】:

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

有没有办法在高亮时保持背景颜色?

Example result

【问题讨论】:

    标签: handsontable


    【解决方案1】:

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

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

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

    【讨论】:

      【解决方案2】:
      .handsontable .currentRow { 
          background-color: rgba(225, 250, 255, 1);
      } 
      .handsontable .currentCol { 
          background-color: rgba(225, 250, 255, 1);
      } 
      

      目的可以在此完成。谢谢你的回答。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-09-29
        • 2012-07-16
        • 1970-01-01
        • 2021-02-03
        • 1970-01-01
        • 1970-01-01
        • 2014-02-21
        相关资源
        最近更新 更多