<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<script src="http://i.tq121.com.cn/j/jquery-1.8.2.js" type="text/javascript" ></script>
<body>
<input id="btn" type="button" value="点我试试" /><br />
<div id="div1" style="background:green;height:100px;width:100px;position:absolute;z-index:1; display:;">
<strong>后妈生的ie6</strong>
<!--[if IE 6]>
<iframe frameborder="0" style="width:100%;height:100%;filter:alpha(opacity=0);position:absolute;top:0;left:0;"></iframe>
<![endif]-->
<strong>后爹生的ie6</strong>
</div>
<select>
<option>天天</option>
<option>ew</option>
<option>ev</option>
<option>gw</option>
<option>fs</option>
</select>
<script>
$('#btn').toggle(function(){
$('#div1').toggle();
},function(){
$('#div1').toggle();
})
</script>
</body>
</html>
转载于:https://www.cnblogs.com/liujinyu/p/3545575.html