Is there a way to tell an html element to ignore any stylesheets?

后端 未结 7 1930
忘了有多久
忘了有多久 2020-12-03 10:15

I\'m attempting to add a drop down to a page that already has a global \"select\" style. Is there a way to tell the new select list to ignore the global style? There\'s ab

相关标签:
7条回答
  • 2020-12-03 11:05

    Assuming you could set a unique class or id on that element you could use the (limited browser support) property all and set it to unset or initial

    Something like

    <div class="ignore-css"><div>
    

    and

    .ignore-css{all:unset;}
    
    0 讨论(0)
提交回复
热议问题