Use meta tags to specify kernel rendering web pages

1. Use meta tags to specify 360 dual-core browsers, QQ browsers, etc. to specify the kernel to render web pages

The value of content is one of webkit, ie-comp, and ie-stand. It is case-sensitive and represents the use of webkit kernel, IE compatible kernel, and IE standard kernel.

If the page needs to use the ultra-fast kernel by default, add a label: <meta name="renderer" content="webkit"> 
If the page needs to use the IE compatible kernel by default, add a label: <meta name="renderer" content="ie-comp"> 
If the page needs to use the IE standard kernel by default, add a label:<meta name="renderer" content="ie-stand">

At the same time, multiple kernel names can be specified at the same time, separated by the symbol "|", as follows: 
<meta name="renderer" content="webkit|ie-comp|ie-stand">

360 browser official documentation:http://se.360.cn/v6/help/meta.html 

QQ browser official documentation: http://browser.qq.com/wiki/index.html#!index.md

2、<metahttp-equiv="X-UA-Compatible"content="IE=edge,chrome=1">  

X-UA-Compatible is a proprietary <meta> attribute of IE8. It tells IE8 which IE version to use to render web pages. It is used in the <head> tag of html, and slowly develops into X-UA-Compatible for us to define The browser's rendering method . More information can be found in the official Microsoft documentation.

IE=edge tells IE to use the latest engine to render web pages, and chrome=1 forces IE to use Chrome Frame to render. There is a problem here. If there is aChrome Frame on the client side and it is enabled, the browser access page will be rendered by the Chrome kernel, but if not, it can only be hehe.

Here I have to mention a project of Google, that is Chrome Frame (project homepage, need FQ), this project is to use the Chrome kernel without changing the appearance of IE, just like if IE is a person, then the person's limbs are not Changed, but changed the brain. The above wording is related to this project, but when we visit this page now, it will display "Google Chrome Frame is no longer supported and retired as of February 25, 2014.", which means that it was already in 2014. Support services are no longer available.

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> should be placed in the first position under the head, otherwise it may not work.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324748968&siteId=291194637