如何在DIV框加一个关闭按钮?? 显示上层嘛 就把zIndex设置大点嘛 比如:100000 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 关闭窗体<div id='error'>错误信息:<input type='button' onclick='document.getElementById("error").style.display="none";' value='关闭本窗体'></div> <div id="error" style="position: absolute; z-index: 10000; display: none;"> <div id='Div1'> <table> <tr> <td> 错误信息: </td> <td> <input type=button onclick="CloseErr();" value="关闭"> </td> </tr> </table> </div> <table> <tr> <td> 错误信息! </td> </tr> </table> </div> <script> function CloseErr() { error.style.display="none"; } function OpenErr() { //打开的位置 } </script> JS COOKIE删除问题 js获得onload的值 关于js的onSubmit,为什么没有反映呢! 这是什么意思! [百分求教,解决后再送几百分也行]firefox中,当文本框的值被js修改时,解发哪个事件? 遍历web页面中的动态生成的控件元素 我想有两个轮播效果 怎么循环这个轮播效果 而不用调用不同的ID 如果做到把弹出框close的时候把母页面close掉? 求助:意外地调用了方法或属性访问 datagrid不能编辑怎么回事 修改SELECT中OPTION被选中问题 函数中的变量应用在对象中
<div id='error'>
错误信息:<input type='button' onclick='document.getElementById("error").style.display="none";' value='关闭本窗体'>
</div>
<div id="error" style="position: absolute; z-index: 10000; display: none;">
<div id='Div1'>
<table>
<tr>
<td>
错误信息:
</td>
<td>
<input type=button onclick="CloseErr();"
value="关闭">
</td>
</tr>
</table>
</div>
<table>
<tr>
<td>
错误信息!
</td>
</tr>
</table>
</div>
<script>
function CloseErr()
{
error.style.display="none";
}
function OpenErr()
{
//打开的位置
}
</script>