只能再打开时设置
"dialogWidth:200;dialogHeight:300"

解决方案 »

  1.   

    http://www.csdn.net/Develop/read_article.asp?id=15113
      

  2.   

    呵呵,提个题外话,个人觉得showMouduleDialog应该小心使用,特别
    在刷新父窗口时,如果不是IE6会出很多问题的,还有iframe........小心,小心:)
      

  3.   

    dialogArguments--------------------------------------------------------------------------------DescriptionReturns the variable or array of variables passed into the modal dialog window. Syntax
    object.dialogArgumentsResThis property applies only to windows created using the showModalDialog method. This property has read-only permission, meaning you can retrieve its current value, but not change it. Applies Towindow 注意:此属性是只读的!你只能最开始设置好
      

  4.   

    Syntax
    variant = object.showModalDialog(sURL [, vArguments [, sFeatures]])Parameter Description 
    sURL  String specifying the URL of the document to load and display. While an empty string is accepted (""), it should be noted that this is useless since once a modal dialog has been opened, it cannot be accessed by the page that opened it. 
    vArguments  Optional. Variant specifying the arguments to use when displaying the document. This parameter can be used to pass a value of any type including an array of values. The dialog can extract the values passed by the caller from the dialogArguments property of the window object.  
    sFeatures  Optional. String specifying the window ornaments for the dialog box. It can be a combination of the following values. Syntax  Description  
    dialogWidth:number  Sets the width of the dialog window. 
    dialogHeight:number  Sets the height of the dialog window. 
    dialogTop:number  Sets the top position of the dialog window relative to the upper-left corner of the desktop. 
    dialogLeft:number  Sets the left position of the dialog window relative to the upper-left corner of the desktop. 
    center:{yes | no | 1 | 0 }  Specifies whether to center the dialog window within the desktop. Default is yes.