How to stop user agent stylesheets from overriding my css

前端 未结 5 1996
耶瑟儿~
耶瑟儿~ 2020-12-28 12:52

I\'m trying to set cursor: pointer on a dom element, but the input isn\'t taking it (I am not seeing a pointer cursor when I hover over the checkbox). In chrome, I see that

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-28 13:36

    I thought I had this problem and checked the usual suspects, Doctype, etc. As ridiculous as this sounds, it turned out the style which I thought was being applied was commented out in the CSS. However, Chrome was displaying the style as if it was an actual style and being overridden.

提交回复
热议问题