【问题标题】:Rendering CSS properties at the very end ( Let all other CSS get loaded first )在最后渲染 CSS 属性(让所有其他 CSS 首先加载)
【发布时间】:2020-03-13 12:20:26
【问题描述】:

我正在研究基于 angular/typescript 的 SCSS。我必须在作为组件的一部分的相应 SCSS 中覆盖一些基于 CSS 的属性。

例如以下属性需要生效。

list-view-component.scss

.k-grid {
    background-color:rgba(17,255, 238, 0) !important;
}

.k-pager-wrap {
        background-color:rgba(17,255, 238, 0) !important; ---> this doesnt get effect in IE.
}

我需要确保首先加载所有其他内容,然后必须应用这些 SCSS 属性。 因为目前,当我在 chrome 上打开 UI 时,这些属性会生效,但在 IE '.k-pager-wrap' 上不会生效。因为我后来在 IE 检查工具中看到它仍然被另一个值覆盖。我不知道为什么。

有人可以帮助我吗? 谢谢

【问题讨论】:

    标签: css angular internet-explorer kendo-ui


    【解决方案1】:

    这样试试

    :host ::ng-deep .k-pager-wrap {
            background-color:rgba(17,255, 238, 0) !important; 
    }
    

    【讨论】:

      猜你喜欢
      • 2017-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-20
      相关资源
      最近更新 更多