<p>使用meta标签指定双核浏览器以IE浏览器内核渲染网页</p><p>今天不小心看了下慕课网首页的源码,看到有一行</p><p>1 &lt;meta name=&quot;renderer&quot; content=&quot;webkit|ie-comp|ie-stand&quot;&gt;</p><p>renderer,这东西不熟,是干嘛用的?</p><p>google之,原来这东西是为双核浏览器准备的:指定双核浏览器默认以何种方式渲染页面。</p><p>&lt;meta name=&quot;renderer&quot; content=&quot;webkit&quot;&gt;//默认webkit内核</p><p>&lt;meta name=&quot;renderer&quot; content=&quot;ie-comp&quot;&gt;//默认IE兼容模式</p><p>&lt;meta name=&quot;renderer&quot; content=&quot;ie-stand&quot;&gt;//默认IE标准模式</p><p>而 webkit|ie-comp|ie-stand 这种写法,跟font-family的规则类似,按照顺序排他的优先级,不支持则往下,浏览器将会按照从左到右的先后顺序选择其具备的渲染内核来处理当前网页。</p><p>目前支持对其提供支持的浏览器有:360</p>
返回顶部 留言