Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

完美解決 Windows 8.1 IE11 相容性問題:修改 User Agent 字串

編輯:Win8 系統應用技巧

IE11 變更 User Agent 字串(移除 "MSIE"、加入 "Gecko"),導致許多網站誤判為 Firefox,版面錯亂或功能失效。

暫時方案:相容性檢視

工具列 → 「相容性檢視設定」 → 加入問題網站。但需逐站設定。

根治方案:登錄修改 User Agent

  1. Win+R → regedit。
  2. 定位 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION。
  3. 新增 DWORD 值,名稱為 iexplore.exe,值設為 8000 (十進位 32768) 或 8888。
  4. 或修改 HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION 同樣鍵值。
  5. 重開 IE11,User Agent 將包含 "MSIE 8.0",網站即能正確識別。

修改後 UA 範例:Mozilla/5.0 (MSIE 8.0; Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko。含 "MSIE" 字串即可解決多數相容性問題。

Copyright © Windows教程網 All Rights Reserved