how to call browser based css?

后端 未结 8 1361
粉色の甜心
粉色の甜心 2020-12-04 01:48

we can get the browser name from javascript but is there any way to change css accordingly.I mean some classes of css file because I dont want to link another css file , I

相关标签:
8条回答
  • 2020-12-04 02:38

    Use the URL-prefix for the Mozilla extension:

    @-moz-document url-prefix() {
      a img {
        margin:5px;
      }
    }
    
    0 讨论(0)
  • 2020-12-04 02:39

    u can detect with js the browser version. And link the right css file.

    For IE you can use

    Sometimes I use -moz-CSS_ATTRIBUTE für Mozila, but it works not everytime.

    I think JS is the best solution

    0 讨论(0)
提交回复
热议问题