How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code?

前端 未结 25 2634
谎友^
谎友^ 2020-11-22 06:19

How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code?

I tried this, but

25条回答
  •  醉话见心
    2020-11-22 06:52

    You can use PHP to add a stylesheet for IE 10

    Like:

    if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE 10')) {
        
    }
    

提交回复
热议问题