How to display browser specific HTML?

后端 未结 9 656
遇见更好的自我
遇见更好的自我 2020-12-06 10:48

I\'m trying to find a way to display one link to an IE user and another link to all other browsers using javascript or conditional comments (or whatever it takes).

B

9条回答
  •  遥遥无期
    2020-12-06 11:23

    One way that I've figured out how to do it:

    Get the javascript code from http://www.quirksmode.org/js/detect.html and put it in the tag.

    Then in your tag use:

    
    

    Not sure if this is the most simple way to do it but it got the job done.

提交回复
热议问题