我試過在添加註冊表項:如何以編程方式將網站添加到兼容性列表Internet Explorer 11?
Hive: HKEY_CURRENT_USER
Key Path: Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList\
Value name: sub.companyname.com
Value data: sub.companyname.com
但是在Internet Explorer 11此方法,因爲它似乎列表移動不起作用。
My.Computer.Registry.SetValue("Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList", "sub.companyname.com", "sub.companyname.com")
**非常重要的注意事項**:如果用戶清除臨時Internet文件並且不保留其歷史記錄,則會清除「ClearableListData」內容,從而清除兼容性視圖列表。確保用戶不會無意中清除配置的兼容性視圖條目的正確方法是使用@Rolo的解決方案,但將它們添加到「HKEY_LOCAL_MACHINE \ Software \ Policies \ Microsoft \ Internet Explorer \ BrowserEmulation \ PolicyList \ somewebsite.com「,以便所有用戶都能收到該設置。 – Beems