var sDate=window.showModalDialog("/Calendar.html","","center=1;dialogHeight=17.5;dialogWidth=10;help=0;status=0;resizable=0");

解决方案 »

  1.   

    你只需要把center=1加上去就可以了!
      

  2.   

    window.showModalDialog("test.jsp","密 码","dialogHeight:160px;dialogWidth:450px;center:Yes;help:No;resizable:No;status:No")
      

  3.   

    改成:child =showModalDialog("frame.asp?strVariable=","center=1;dialogWidth:800;dialogHeight:400;status:no;");
      

  4.   

    child =showModalDialog("frame.asp?strVariable=","dialogWidth:800px;dialogHeight:400px;dialogLeft:100px;dialogTop:180px;status:no;");为什么我的dialog打开总是缩在画面坐上角的一个小小的窗口,无论我怎么改变dialog的大小和高度,都没有用!
    -------------------------------------------------------------
    "frame.asp?strVariable=","dialogWidth  你在逗号那个地方少带了一个参数child =showModalDialog("frame.asp?strVariable=","你漏掉了这个参数 这里你空着不写都行","dialogWidth:800px;dialogHeight:400px;dialogLeft:100px;dialogTop:180px;status:no;");
    或者
    child =showModalDialog("frame.asp?strVariable=","","dialogWidth:800px;dialogHeight:400px;dialogLeft:100px;dialogTop:180px;status:no;");
      

  5.   

    你在试试child =showModalDialog("frame.asp?strVariable=","","dialogWidth=400px;dialogHeight=200px;dialogLeft=100px;dialogTop=180px;status=no;");我在IE5.0+win2000上测试通过
      

  6.   

    window.showModalDialog('frame.asp?strVariable=',null,'dialogWidth:300px;dialogHeight:300px;');
      

  7.   

    trychild =showModalDialog("frame.asp?strVariable=',window,'dialogWidth:800px;dialogHeight:400px;dialogLeft:100px;dialogTop:180px;status:no;');