显示上层嘛 就把zIndex设置大点嘛 比如:100000

解决方案 »

  1.   

    关闭窗体
    <div id='error'>
    错误信息:<input type='button' onclick='document.getElementById("error").style.display="none";' value='关闭本窗体'>
    </div>
      

  2.   


      <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>