复制代码
代码如下:<!DOCTYPE html>
<!--[if lt IE 7]><html class="ie6"><![endif]-->
<!--[if IE 7]><html class="ie7"><![endif]-->
<!--[if IE 8]><html class="ie8"><![endif]-->
<!--[if IE 9]><html class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="w3c">
<!--<![endif]-->
<head>
<
<title>tinyCss--my css study tidy</title>
<
<
<
<
<
<
<
<
</head>
<body></body>
</html>
[code]
提示一:
viewport, 当你的页面有宽度时,比如宽度为1000px,设定width=1000, 兼容性会更好些。
提示二:
X-UA-Compatible, 此属性仅为ie8浏览器识别,让ie8用ie7的模式渲染是一种常见的应用;这样:content="IE=7";不用这个
提示三:
Expires:文档过期时间,过了这个时间就需要从服务器从新请求,而不可以用缓存;content="-1"理论上是禁用缓存的。