Before navigating the URL, write meta into webbrowser
‘s documenttext
property as follows:
//Setting compatible mode of IE. this.m_oWebBrowser.DocumentText = @"<html> <head><meta http-equiv=""X-UA-Compatible"" content=""IE=IE11"" /> </head> <body></body> </html>"; this.m_oWebBrowser.Navigate("www.cnblogs.com");
时间: 2024-10-04 07:46:20