Home  >  Article  >  Web Front-end  >  meta之renderer_html/css_WEB-ITnose

meta之renderer_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:55:491163browse

Today I accidentally looked at the source code of the MOOC homepage and saw a line

1 <meta name="renderer" content="webkit|ie-comp|ie-stand">

renderer,这东西不熟,是干嘛用的?google之,原来这东西是为双核浏览器准备的:<strong>指定双核浏览器默认以何种方式渲染页面。</strong>

<meta name="renderer" content="webkit">//默认webkit内核

<meta name="renderer" content="ie-comp">//默认IE兼容模式

<meta name="renderer" content="ie-stand">//默认IE标准模式

而 webkit|ie-comp|ie-stand 这种写法,跟font-family的规则类似,按照顺序排他的优先级,不支持则往下,浏览器将会按照从左到右的先后顺序选择其具备的渲染内核来处理当前网页。<strong></strong>目前支持对其提供支持的浏览器有:360文章参考:使用meta标签指定双核浏览器以IE浏览器内核渲染网页

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn