html 的div样式跟IE版本有关吗?在IE7一下的怎么定义

来源:百度知道 编辑:UC知道 时间:2024/05/21 15:03:31
<HTML>
<script>
var oPopup = window.createPopup();
function richContext()
{
var lefter2 = event.offsetY+0;
var topper2 = event.offsetX+15;
oPopup.document.body.innerHTML = oContext2.innerHTML;
oPopup.show(-45, 30,45, 90, contextobox);
}
</script>
</head>
<body>

<table height="140%" border="0" cellpadding="0" cellspacing="0" class="left-lumen">
<tr>
<td valign="top" ><input type="button" class="button001" value="新增" onclick="parent.mainFrame.bottomFrame.location.href='foldernew.htm'"/>
<div id="oContext2" style="display:none;">
<div>
<input type="button" class="button001" value="复制">
</div>
</div>

有style="display:none;"这句,应该后面的input是显示不出来的,
没有不一样,我测试下来都一样啊。

不过IE6和IE7显示得不一样很正常,IE7支持XHTML标准的,IE6不支持。