不知道你说的是不是右上角关闭按钮,如果是的话,可以这样取消
取消右上角的按钮使用 closable: false 案例如下 $("#box").dialog({ closable: false, width: 400, height: 250, title: '用户详情', modal: true, buttons: [{ text: '关闭', iconCls: 'icon-cancel', handler: function () { $('#details').dialog('close'); } }], });