方法一:Safari仿真ie
步驟:1、打開Safari(右上角菜單欄)--偏好設置--高級--勾選“在菜單欄中顯示開發選項”;
2、開發(右上角菜單欄)--用戶代理--選擇仿真的版本
3、如果Safari自帶的用戶代理沒有想要的ie版本(比如ie8、ie9等),可以打開:開發(右上角菜單欄)--用戶代理--其他 ,手動填寫代理版本
附:用戶代理鏈接 https://developers.whatismybrowser.com/useragents/explore/software_name/internet-explorer/
IE版本 系統 用戶代理字符串(復制)
Internet Explorer 8 Windows XP Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Internet Explorer 8 Windows Vista Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0;)
Internet Explorer 8 Windows 7 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)
Internet Explorer 9 Windows Vista Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.0)
Internet Explorer 9 Windows 7 Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)
Internet Explorer 10 Windows 7 Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
Internet Explorer 10 Windows 8 Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2)
Internet Explorer 11 Windows 7 Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0)
Internet Explorer 11 Windows 8 Mozilla/5.0 (Windows NT 6.2; Trident/7.0; rv:11.0)
Internet Explorer 11 Windows 8.1 Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0)
Internet Explorer 11 Windows 10 Mozilla/5.0 (Windows NT 10.0; Trident/7.0; rv:11.0)