How can I override inline styles with external CSS?

前端 未结 6 1577
庸人自扰
庸人自扰 2020-11-22 05:52

I have markup that uses inline styles, but I don\'t have access to change this markup. How do I override inline styles in a document using only CSS? I don\'t want to use jQu

6条回答
  •  误落风尘
    2020-11-22 06:24

    !important, after your CSS declaration.

    div {
       color: blue !important; 
    
       /* This Is Now Working */
    }
    

提交回复
热议问题