jquery ui的dialog默认弹出位置为页面的中部,如果页面特别长,则弹出框可能在第一屏中看不到,需要自定义弹出的位置:
jquery ui的dialog默认弹出位置为{ my: "center", at: "center", of: window }
具体参见dialog的api:http://api.jqueryui.com/dialog/#option-position
positionType: Object or String or Array
Default:
{ my: "center", at: "center", of: window }
Specifies where the dialog should be displayed. The dialog will handle collisions such that as much of the dialog is visible as possible.
Note: The String
and Array
forms are deprecated.
Multiple types supported: