如何理解 IE 的文档兼容模式(X-UA-Compatible)?
IE 浏览器支持多种文档兼容模式,得以因此改变页面的渲染效果。
IE9 模式支持全范围的既定行业标准,包括 HTML5(草案), W3C CSS Level 3 规范(草案), SVG 1.0 规范等
<meta http-equiv="X-UA-Compatible" content="IE=9">
IE8 模式支持许多既定行业标准,W3C CSS Level 2.1 规范和 W3C Selectors API,有限支持 W3C CSS Level 3 规范(草案)和其他行业标准
<meta http-equiv="X-UA-Compatible" content="IE=8">
IE7 模式强制浏览器按照 IE 7 标准模式渲染文档,忽略是否定义指令
<meta http-equiv="X-UA-Compatible" content="IE=7">
Emulate IE9 模式告诉 IE 使用指令来决定如果渲染文档。标准模式下以 IE9 渲染,怪癖模式下以 IE5 渲染。和 IE9 模式不同的是,Emulate IE9 模式会考虑指令
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
Emulate IE8 模式告诉 IE 使用指令来决定如果渲染文档。标准模式下以 IE8 渲染,怪癖模式下以 IE5 渲染。和 IE8 模式不同的是,Emulate IE8 模式会考虑指令
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
Emulate IE7 模式告诉 IE 使用指令来决定如果渲染文档。标准模式下以 IE7 渲染,怪癖模式下以 IE5 渲染。和 IE7 模式不同的是,Emulate IE7 模式会考虑指令。对于大多数站点而言,这是首选的兼容模式
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
IE5 模式告诉 IE7 是否以怪癖模式渲染文档
<meta http-equiv="X-UA-Compatible" content="IE=5">
Edge 模式告诉 IE 以最高级模式渲染文档,也就是任何 IE 版本都以当前版本所支持的最高级标准模式渲染,避免版本升级造成的影响。简单的说,就是什么版本 IE 就用什么版本的标准模式渲染
<meta http-equiv="X-UA-Compatible" content="IE=edge">
使用以下代码强制 IE 使用 Chrome Frame 渲染
<meta http-equiv="X-UA-Compatible" content="chrome=1">
提示 IE 用户安装 Google Frame
Google 官方提供了对 Google Frame 插件安装情况的检测,这里直接调用方法即可,如果检测到 IE 并未安装 Google Frame,则弹出对话框提示安装。
<script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script><script>CFInstall.check();</script>
最佳的兼容模式方案,结合考虑以上两种:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
.
相关推荐
OPC-UA客户端用户界面如何构建和运行需要什么: 最新稳定的 最新稳定的mvn clean installjava -jar opcua-ui/target/opc-ua-client-jar-with-dependencies.jarOPC-UA模拟服务器端点网址关联opc.tcp://opcua.demo-...
在快速中间件中设置X-UA-Compatible标头。 强制IE使用最新的渲染引擎,如果已安装,默认为chrome-frame 安装 npm install ua-compatible --save 用法 var express = require('express') var app = express() var ...
当你引入一个增设的兼容性模式,此文章说明文件兼容性的必要性,列出现有版本IE能使用的文件兼容性模式并示范如何选择特定的兼容性模式。 了解文件兼容性的必要性 每个主要版本IE新增的功能都是为了让浏览器更容易...
meta http-equiv=”X-UA-Compatible” content=”IE=9; IE=8; IE=7; IE=EDGE” />1、这个到底是什么意思? 2、一些示例使用”,”分离IE的版本,而一些使用”;“,哪个正确? 3、我想知道IE=9; IE=8; IE=7; IE=...
On Windows, run the installer executable prosys-opc-ua-simulation-server-windows-x64-5.4.6-148.exe and follow the instructions. By default, the application is installed to the folder Program Files/...
prosys-opc-ua-simulation2.3.2-146 server端、client端和说明文档
单机调试plc工具
X-UA-Compatible是针对ie8新加的一个设置,对于ie8之外的浏览器是不识别的,这个区别与content="IE=7"在无论页面是否包含<!DOCTYPE>指令,都像是使用了 Windows Internet Explorer 7的标准模式。而content="IE=...
论文研究-改进SCEM-UA算法在概念性降雨-径流模型参数优选中的应用.pdf, 在系统研究SCEM-UA算法基础上, 借鉴自适应Metropolis算法的思想, 对SCEM-UA算法中推荐分布的...
prosys-opc-ua-client-3.1.6-322.exe 可以连线OPC -UA client功能。
SCE-UA方法是模型率定中重要的模型参数全局优化算法,被广泛应用于水文模型中。
vic模型参数率定代码,用Python编写
meta http-equiv=”x-ua-compatible” content=”ie=7″ /> <![endif]–> <!–[if IE 9]> <meta http-equiv=”x-ua-compatible” content=”ie=9″ /> <![endif]–> 哎,苦逼啊。本以为搞定了IE6...
opcua模拟器
OPC UA客户端软件exe OPC基金会 (OPC Foundation) 发布了最新的数据通讯统一方法 — OPC统一架构 (OPC UA), 涵盖了OPC 实时数据访问规范 (OPC DA)、OPC历史数据访问规范 (OPC HDA)、 OPC 报警事件访问规范 (OPC A&E...
opc-ua-1.02-.net-stackandsamples
Prosys OPC UA Simulation Server 5.4.6-148 linux版, arm64架构的。 OPC UA 模拟器 软件
prosys-opc-ua-server和prosys-opc-ua-browser安装包
一个opc ua模拟软件,用于快速调试OPC ua client程序。功能齐全,服务稳定。支持多种模式,全部数据类型,以及各种安全规则设定