How to do a Chrome/Opera specific stylesheet?

前端 未结 6 659
野性不改
野性不改 2020-12-07 23:26

I need to do chrome/opera hacks because of a font replacement script wanted by the client that breaks things... this is sad but everything is working in IE6

6条回答
  •  忘掉有多难
    2020-12-07 23:52

    A clean javascript way to do this: http://rafael.adm.br/css_browser_selector/

    It ads browser specific classes to the body tag of your html which you can use in your css like:

    .opera #thingie, .chrome #thingie {
      do: this;
    }
    

    Hope this helps.

提交回复
热议问题