【发布时间】:2019-09-02 22:46:53
【问题描述】:
我们如何覆盖由 angular 指令创建的 CSS。例如,当我们将添加排序指令添加到材料数据表时,它是creates this problem (It overrides the layout of the column header).。
通过 styles.scss 或组件本地 CSS 覆盖 CSS 不起作用,因为该指令添加了具有优先级的内联样式。还尝试将 !important 添加到 CSS 定义覆盖,但不喜欢。
想法?
【问题讨论】:
标签: javascript html css angular typescript