【问题标题】:tabulator .tabulator-row-even overridden but .tabulator-row-odd is nottabulator .tabulator-row-even 被覆盖,但 .tabulator-row-odd 不是
【发布时间】:2020-02-18 00:51:06
【问题描述】:

我正在尝试在制表符表上设置“.tabulator-row-even”和“.tabulator-row-odd”颜色。

".tabulator-row-even" 被 tabulator.scss 覆盖

“.tabulator-row-odd”没有被覆盖,我可以改变这个颜色。

我的 style.css 有以下几行:

.tabulator-row-odd {
    background-color: #553333;
}
.tabulator-row-even {
    background-color: #335533;
}

Safari 上的计算属性:

#553333.tabulator-row-odd   style.css:23
#fff.tabulator-row  tabulator.scss:1001
#fff.tabulator .…lator-table    tabulator.scss:1001

#efefef.tabulator-r…or-row-even tabulator.scss:1001
#335533.tabulator-row-even  style.css:26
#fff.tabulator-row  tabulator.scss:1001

【问题讨论】:

  • 请添加一个 Jsfiddle 演示
  • 我通过向元素添加另一个类来解决它。我在树莓派上使用 nodejs。除了简单的事情,我不知道如何使用小提琴。有没有办法禁用 sass?

标签: css sass tabulator


【解决方案1】:

你试过了吗?

.tabulator-row-odd {
    background-color: #553333 !important;
}
.tabulator-row-even {
    background-color: #335533 !important;
}

【讨论】:

  • 之所以起作用,是因为这些类是用 .tabulator-row 类指定的。所以你需要将选择器指定为 .tabulator-row.tabulator-row-odd 以覆盖它们
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-04-14
  • 1970-01-01
  • 1970-01-01
  • 2023-01-05
  • 1970-01-01
  • 2021-09-02
相关资源
最近更新 更多