Override Inline Styles added via JS with CSS

前端 未结 3 1202
南方客
南方客 2021-01-02 15:07

A js plugin is adding a style that is giving me some headache:

element.style {
     z-index: 100 !important;
}

So i have tried this:

<
3条回答
  •  旧巷少年郎
    2021-01-02 15:43

    The inline style will trump any selectors. Either reset the style yourself in javascript or patch the plugin... it doesn't sound like a particularly well written anyway, to be honest. : )

提交回复
热议问题