方法一:在<head>标签里增加如下meta标签。 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=8"> <meta ...
分类:
Web程序 时间:
2016-05-26 16:04:01
阅读次数:
400
function addFavorite() { var url = window.location; var title = document.title; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("360se") > ...
分类:
Web程序 时间:
2016-05-25 13:10:46
阅读次数:
167
x-ua-compatible 用来指定IE浏览器解析编译页面的model x-ua-compatible 头标签大小写不敏感,必须用在 head 中,必须在除 title 外的其他 meta 之前使用。1、使用一行代码来指定浏览器使用特定的文档模式。<meta http-equiv="x-ua-c ...
分类:
其他好文 时间:
2016-05-25 09:31:24
阅读次数:
172
<script> var Sys = {}; var ua = navigator.userAgent.toLowerCase(); if (window.ActiveXObject){ Sys.ie = ua.match(/msie ([\d.]+)/)[1] if (Sys.ie<=8){ co ...
分类:
其他好文 时间:
2016-05-24 18:50:26
阅读次数:
135
<meta http-equiv="X-UA-Compatible" content="IE=7" />以上代码告诉IE浏览器,无论是否用DTD声明文档标准,IE8/9都会以IE7引擎来渲染页面。 <meta http-equiv="X-UA-Compatible" content="IE=8" / ...
分类:
其他好文 时间:
2016-05-24 18:43:14
阅读次数:
111
1、微信环境的UA设置: 进入Chrome的控制台:Network >More Tools-->Network conditions 设置User-Agent 的值为MircoMessenger 2、中Cookie的情况: 依次输入Cookie的名称、值、域名。 ...
分类:
其他好文 时间:
2016-05-24 13:26:12
阅读次数:
2330
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initia ...
分类:
Web程序 时间:
2016-05-20 19:34:57
阅读次数:
186
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>disc报告</title> <link rel="stylesheet" ...
分类:
其他好文 时间:
2016-05-18 21:51:41
阅读次数:
166
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="IE=Edge,chrome=1"/> <meta name="viewport" con ...
分类:
其他好文 时间:
2016-05-15 16:32:38
阅读次数:
151
做为一个开发人员,经常被要求前端页面兼容ie8及以上,所以有时候我们希望ie默认以ie8的版本打开我们的页面。 1.“文档模式”: 在html页面中加入类似下面的代码: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" > 这个设置 ...
分类:
其他好文 时间:
2016-05-13 10:13:42
阅读次数:
458