Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$.browser.version を使用して、JQuery を使用して IE のバージョンを確認します。
コードが IE10 で実行されると、8.0? が返されます。
助言がありますか...
開発者ツール (F12) を開き、ツールの上部にあるドロップダウンを見て、IE が互換モードになっているかどうかを確認してください。おそらくIE8互換モードです。有効な doctype を使用していることを確認し、他のすべてが失敗した場合は、ページの先頭に次を追加します。
<meta http-equiv="X-UA-Compatible" content="IE=edge">