我想删除 jQuery UI 中的对话框标题并添加我的关闭按钮。关闭按钮是图像,当用户单击图像时,对话框将被关闭。这是我的片段:
$("#dialog-model").dialog({
create: function (event, ui) {
jQuery(".ui-dialog-titlebar").hide();
$("#dialog-model").css({ 'font-family': 'Helvetica', 'padding': '0', 'font-size': '12px' });
},
height: 500,
width: 900,
modal: true,
});
我尝试在 scipt 中添加图像,但它不起作用