现在的位置: 首页 > 综合 > 正文

在IE浏览器下使用JavaScript打开模态窗口

2013年10月18日 ⁄ 综合 ⁄ 共 617字 ⁄ 字号 评论关闭
<%@ page language="C#" autoeventwireup="true" codebehind="ProjectAccountInfor.aspx.cs" inherits="Huawei.TCMP.Web.UserControl.ProjectAccountInfor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>模式页面</title>
    <base target="_self" />
</head>
<body>
    <!--用div来控制滚动条-->
    <div style="width: 100%; height: 450px; overflow-x: hidden; overflow-y: scroll;">
        <form id="form1" runat="server">
        </form>
    </div>
</body>
</html>
 window.showModalDialog(url,null,"dialogWidth=800px;dialogHeight=450px;scroll:no");
//打开模式窗口关闭滚动条样式


 

 

抱歉!评论已关闭.