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

meta之renderer_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:55:49
Original
1197 people have browsed it

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">
Copy after login

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

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

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template