Object doesn't support property or method 'querySelector' in IE 10

后端 未结 5 847
南方客
南方客 2021-01-23 01:24

I encounter a problem with IE 10 regarding its support. The website is very good to use in other browser except IE.. I also tried using IE 11 and still it didn\'t work.

5条回答
  •  心在旅途
    2021-01-23 02:20

    IE Developer Tools [F12] was useful for me in diagnosing this (IE11):

    • the toolbar on dev tools has a dropdown that lets you select IE compatibility version
    • set the desired version using the dropdown on the toolbar, then refresh the page
    • in my case the error went away when using version 8 or greater

    To fix the issue, I ended up adding a meta tag as described here. (I actually added it via the web.config as shown here).

提交回复
热议问题