<!DOCTYPE html>
<!--[if IE]>
<![if IE 5]>
<html >
<![endif]>
<![if IE 6]>
<html >
<![endif]>
<![if IE 7]>
<html >
<![endif]>
<![if IE 8]>
<html >
<![endif]>
<![if IE 9]>
<html >
<![endif]>
<![if !((IE 6)|(IE 7)|(IE 8)|(IE 9))]>
<html >
<![endif]>
<![endif]-->
<!--[if !IE]><!-->
<html lang="zh-CN" >
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<title>测试</title>
<meta name="keywords" content="">
<meta name="description" content="">
<style>
html{background:#fff;}
html.ie{background:#000;}
html.ie5{background:#f00;}
html.ie6{background:#0f0;}
html.ie7{background:#00f;}
html.ie8{background:#ff0;}
html.ie9{background:#f0f;}
html.notie{background:#0ff;}
</style>
</head>
<body>
通过注释为不同的ie添加class
<br/>
方便针对ie浏览器进行兼容处理
<br/>
请使用不同IE打开将显示不同的背景色
<br/>
>=IE10 将被判断为不是ie
</body>
</html>
XHTMT|
HTML5|
CSS|
HTML DOM|
jQuery|
JSON|
AJAX|
LESS|
HTML|
Bootstrap|
Foundation|
AngularJS|
Ember.js|
TypeScript|
AngularJS2|
React|
jQuery UI|
jQuery EasyUI|
Node.js|
Highcharts|
Echarts|
Vue.js|
CoffeeScript|
Ext.js|
Meteor|
SASS|
Omi|
Markdown|
前端开发规范|
浏览器|
webpack|
JavaScript|
CSS3|
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
那晚越女说我?