如何在不更改CSS文件的情况下手动调整/设置jQuery对话框中按钮窗格的高度?我想调整包含消息的DIV的高度和包含来自Javascript的按钮(以绿线标记)的DIV.

function showMessageDialog(title, message, width){
// create div if it doesn't exist already
if(!$("#msgDialogDiv").length) {
$("<DIV></DIV>").appendTo("body").attr("id","msgDialogDiv");
}
// set the message
$("#msgDialogDiv").html(message).css("color","red");
// show the dialog
$("#msgDialogDiv").dialog({
modal: true, resizable: false, draggable: false, title: title, width: width,
buttons: {OK: function(){$(this).dialog("close");}}
});
// This changes the height as I want.
// $("#msgDialogDiv").css({"overflow":"hidden","height":"10px"});
// this changes the font on button
//$("#msgDialogDiv").dialog("widget").find(".ui-button-text").css("font-size", "11px");
return;
}
showMessageDialog("Hello Stackoverflow!", "This is my first question on stackoverflow",400);
Run Code Online (Sandbox Code Playgroud)
在发布此问题时,我尝试调整DIV高度并且它有效.我也尝试更改按钮的字体大小,但这只会改变按钮的大小.我想控制整个DIV的大小.这是由于按钮周围的填充物?
我从excel导入了一些数据到我的数据库.由于一些格式错误,许多发货日期是"0000-00-00".我想将其更改为NULL.我使用了以下查询,但它不起作用.有人能告诉我正确的语法吗?
UPDATE inventory SET shipdate = NULL WHERE shipdate IS '0000-00-00'