|  | 
 
 发表于 2014-12-29 15:23:11
|
显示全部楼层 
| IE内核版本可以通过注册表修改 WriteWebBrowserRegKey("FEATURE_BROWSER_EMULATION", 10001);
 WriteWebBrowserRegKey("FEATURE_BLOCK_LMZ_IMG", 1);
 WriteWebBrowserRegKey("FEATURE_BLOCK_LMZ_OBJECT", 1);
 WriteWebBrowserRegKey("FEATURE_BLOCK_LMZ_SCRIPT", 1);
 WriteWebBrowserRegKey("FEATURE_Cross_Domain_Redirect_Mitigation", 1);
 WriteWebBrowserRegKey("FEATURE_ENABLE_SCRIPT_PASTE_URLACTION_IF_PROMPT", 1);
 WriteWebBrowserRegKey("FEATURE_LOCALMACHINE_LOCKDOWN", 1);
 WriteWebBrowserRegKey("FEATURE_GPU_RENDERING", 1);
 
 private static void WriteWebBrowserRegKey(string lpKey, int dwValue)
 {
 string str32 = "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\" + lpKey;
 string str64 = "SOFTWARE\\Wow6432Node\\Microsoft\\Internet Explorer\\MAIN\\FeatureControl\\" + lpKey;
 RegistryKey key32 = Registry.LocalMachine.CreateSubKey(str32);
 key32.SetValue(Process.GetCurrentProcess().MainModule.ModuleName, dwValue);
 key32.Close();
 RegistryKey key64 = Registry.LocalMachine.CreateSubKey(str64);
 key64.SetValue(Process.GetCurrentProcess().MainModule.ModuleName, dwValue);
 key64.Close();
 }
 
 多标签也可以实现
 ((SHDocVw.DWebBrowserEvents_Event)web.ActiveXInstance).NewWindow += new SHDocVw.DWebBrowserEvents_NewWindowEventHandler(Web_NewWindow);
 
 但是独立Cookie我也不知道怎么弄 如果修改注册表的话IE也会跟着改为这个地址
 | 
 |