由于众所周知的原因,国内的主流浏览器都是双核浏览器:基于Webkit的内核用于常用网站的高速浏览,基于IE的内核主要用于部分网银、政府、办公系统等网站的正常使用。以360浏览器为例,我们优先通过Webkit内核渲染主流网站,只有少量的网站通过IE内核渲染,以保证页面兼容性。在过去很长一段时间里,我们的主要控制手段是一个几百k大小的网址库,它是通过长期人工收集来进行运营的。
For well-known reasons, mainstream domestic browsers are dual-nuclear browsers: Webkit-based kernels are used for high-speed browsing of common sites, IE-based kernels are used mainly for the normal use of some web sites, such as webbanks, government, and office systems. In 360 browsers, for example, priority is given to using Webkit-based kernels, and only a small number of sites are used in IE-based kernels to ensure page compatibility. For a long time, our main control tool has been a hundreds of k-sized site repository, which operates through long-term manual collection.
尽管我们努力通过用户反馈、代码标签智能判断等各种手段来提高浏览器自动切核的准确率,但在很多情况下,仍然无法达到百份百正确。因此,我们新增了一个控制手段——“内核控制标签”,只要你在自己的网站里增加一个meta标签,告诉360浏览器这个网站应该用哪个内核渲染,那么360浏览器就会在读取到这个标签后,立即切换对应的内核,并将这个行为应用于这个二级域名下所有网址。
Despite our efforts to improve the accuracy of the browser's automatic nucleics through various means, such as user feedback, code label intelligence judgement, in many cases, it is not possible to achieve 100 true copies. So we have added a new control tool, the kernel control label, so that as long as you add a meta label to your own website, telling 360 browsers which kernels should be used, the 360 browser will immediately switch the corresponding kernels as soon as it is read to the label and apply the behaviour to all sites under this secondary domain name.
目前该功能已经在所有的360浏览器中实现,我们也建议其它浏览器厂商一起支持这个标签,让其成为行业标准。
The functionality has now been implemented in all 360 browsers, and we suggest that other browser manufacturers support the label as an industry standard.
浏览器默认内核的指定只需在head标签中添加一行代码即可:
若页面需默认用极速核,增加标签:<meta name="renderer" content="webkit">
若页面需默认用ie兼容内核,增加标签:<meta name="renderer" content="ie-comp">
若页面需默认用ie标准内核,增加标签:<meta name="renderer" content="ie-stand">
content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。
The default kernel specification of the browser may simply add a line code to the head label:
If the page requires the default use of an extreme kernel, add a label: < meta name = "renderer" consent= "webkit">
If the page requires the default use of an kernel with an i-compatible kernel, add a label: < meta name = "renderer" content=ie-comp">
If the page requires the default use of an kernel with an internal kernel: & & ;
内核 | Webkit | IE兼容 | IE标准 |
---|---|---|---|
内核版本 | Chrome 45 | IE6/7 | IE9/IE10/IE11(取决于用户的IE) |
HTML5支持 | YES | NO | YES |
ActiveX控件支持 | NO | YES | YES |
这个功能其实和IE9的X-UA-Compatible很类似,关于IE几个内核的实现介绍,请看:
This function is similar to that of IE9 X-UA-Compatible. For information on the realization of the IE kernels, see:
http://blogs.msdn.com/b/ie/archive/2010/06/16/ie-s-compatibility-features-for-site-developers.aspx注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论