腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
简单的日记
专栏成员
举报
63
文章
110714
阅读量
13
订阅数
订阅专栏
申请加入专栏
全部文章(63)
bash(10)
java(9)
bash 指令(9)
spring(9)
编程算法(7)
sql(6)
http(6)
node.js(5)
xml(5)
数据库(5)
https(5)
javascript(4)
tomcat(4)
linux(4)
容器镜像服务(4)
容器(4)
kubernetes(4)
微服务(4)
oracle(3)
git(3)
nginx(3)
存储(3)
网络安全(3)
jvm(3)
spring boot(3)
云数据库 SQL Server(2)
github(2)
TDSQL MySQL 版(2)
网站(2)
tcp/ip(2)
hbase(2)
boot(2)
php(1)
python(1)
servlet(1)
html(1)
jquery(1)
ajax(1)
android(1)
access(1)
ruby on rails(1)
打包(1)
ide(1)
jar(1)
maven(1)
日志服务(1)
云推荐引擎(1)
开源(1)
缓存(1)
黑客(1)
shell(1)
grep(1)
jenkins(1)
大数据(1)
微信(1)
安全(1)
防火墙(1)
etcd(1)
Elasticsearch Service(1)
action(1)
authentication(1)
centos7(1)
clone(1)
configure(1)
data(1)
dom(1)
exists(1)
ip(1)
line(1)
output(1)
replace(1)
request(1)
security(1)
session(1)
token(1)
truncate(1)
url(1)
var(1)
weblogic(1)
配置(1)
数据(1)
数据仓库(1)
注解(1)
搜索文章
搜索
搜索
关闭
一行代码解决各种IE兼容问题,IE6,IE7,IE8,IE9,IE10
http
html
javascript
x-ua-compatible 用来指定IE浏览器解析编译页面的model x-ua-compatible 头标签大小写不敏感,必须用在 head 中,必须在除 title 外的其他 meta 之前使用。 1、使用一行代码来指定浏览器使用特定的文档模式。 <meta http-equiv="x-ua-compatible" content="IE=9" > <meta http-equiv="x-ua-compatible" content="IE=8" > <meta http-equiv="x-ua-compatible" content="IE=7" > 2、在一些情况下,我们需要限定浏览器对文档的解析到某一特定版本,或者将浏览器限定到一些旧版本的表现中。可以用如下的方式: <meta http-equiv="x-ua-compatible" content="IE=EmulateIE9" > <meta http-equiv="x-ua-compatible" content="IE=EmulateIE8" > <meta http-equiv="x-ua-compatible" content="IE=EmulateIE7" > 使用这种写法,浏览器或者使用标准模式进行解析,或者使用 IE5 Quirks 模式进行解析。 3、为了测试,我们也可以使用下面的语句指定浏览器按照最高的标准模式解析页面。 <meta http-equiv="x-ua-compatible" content="IE=edge" > 4、多个模式的指定。我们可以用逗号分割多个版本,这种情况下,浏览器会从这个列表中选择一个他所支持的最高版本来使用标准模式进行渲染。如下面的例子,在IE8进行浏览时,将会使用IE7的标准模式进行渲染,因为他本身不支持IE9和IE10。 <meta http-equiv="x-ua-compatible" content="IE=7,9,10" > 参考: http://www.cnblogs.com/cocowool/archive/2013/04/25/3043832.html http://www.cnblogs.com/nidilzhang/archive/2010/01/09/1642887.html http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx 一行代码解决各种IE兼容问题,IE6,IE7,IE8,IE9,IE10 2012-04-25 16:29:04| 分类: 学习 |字号 订阅 在网站开发中不免因为各种兼容问题苦恼,针对兼容问题,其实IE给出了解决方案Google也给出了解决方案 百度也应用了这种方案去解决IE的兼容问题 百度源代码如下 <!Doctype html> <html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml> <head> <meta http-equiv=Content-Type content=“text/html;charset=utf-8″> <meta http-equiv=X-UA-Compatible content=IE=EmulateIE7> <title>百度一下,你就知道 </title> <script>var wpo={start:new Date*1,pid:109,page:‘superpage’}</script> <meta http-equiv=X-UA-Compatible content=IE=EmulateIE7> 可以打开百度,右键查看源码看下!我们可以看下文件头是否存在这样一行代码! 这句话的意思是强制使用IE7模式来解析网页代码! 在这里送上几种IE使用模式! <meta http-equiv=“X-UA-Compatible” content=“IE=8″> 2. Google Chrome Frame也可以让IE用上Chrome的引擎: <meta http-equiv=“X-UA-Compatible” content=“chrome=1″ /> 3.强制IE8使用IE7模式来解析 <meta http-equiv=“X-UA-Compatible” content=“IE=EmulateIE7″><!– IE7 mode –> //或者 <meta http-equiv=“X-UA-Compatible” content=“IE=7″><!– IE7 mode –> 4.强制IE8使用I
用户1499526
2019-07-15
3.9K
0
nginx搭建 负载均衡
nginx
http
配置/usr/local/nginx/conf/nginx.conf的http,配置vhost虚拟主机目录,然后配置vhost下的比如LB.conf文件。
用户1499526
2019-07-15
478
0
一些开源的组件。转载的
git
github
开源
https
http
1. Apache的开源软件列表 http://www.oschina.net/project/apache 2. Java开源Apache项目 http://www.open-open.com/56.htm 3. 阿里巴巴的开源软件列表 http://www.oschina.net/project/alibaba 4. 百度的开源软件列表 http://www.oschina.net/project/baidu 5. 腾讯的开源软件列表 http://www.oschina.n
用户1499526
2019-07-15
932
0
LINUX 下 WEBlogic集群的搭建-01
bash
bash 指令
网站
http
jar
java -jar weblog的jar包.jar -mode=console
用户1499526
2019-07-15
2.5K
0
myeclipse set get带注释的方法
编程算法
http
1:在myeclipse/eclisp中搜索找到org.eclipse.jdt.ui_*.jar(*是版本号)
用户1499526
2019-07-15
985
0
spring 论坛 顶
http
https
spring
网络安全
java
http://blog.didispace.com/spring_cloud_community/
用户1499526
2019-07-15
3.6K
0
没有更多了
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
立即查看
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档