html我竟然不知道的一种用法
<html>
<head>
<title></title>
<!--[if gte IE 7]>
<style>
.demo{
width:500px;
height:200px;
border:1px solid red;
}
</style>
<![endif]-->
<!--[if lte IE 6]>
<style>
.demo{
width:200px;
height:500px;
border:1px solid blue;
}
</style>
<![endif]-->
<body>
<div class="demo">
lt:less than 当前指定版本以下,不包含当前版本<br/>
gt:greater than 当前指定版本以上,不包含当前版本<br/>
lte:less than or equal 当前指定版本以下,包含当前版本(等于)<br/>
gte:greater than or equal 当前指定版本以上,包含当前版本(等于)<br/>
</div>
</body>
</head>
</html>
浙公网安备 33010602011771号