初始化后如何调整Jquery对话框的宽度

我试图在初始化之后更改JQuery对话框的宽度。这是我的初始化:
$(function() {
$("#dialogContainer").dialog({
title: 'Some title',resizable: false,bgiframe: true,overlay: { opacity: 0.3,background: "white" },position: [200,200],autoOpen: false,height: 150,width: 'auto'
modal: true,buttons: {
  'ok': function() {
    $(this).dialog('close');
  }
}

});

});

这是我正在做的,以改变它的一些其他功能的宽度:

$("#dialogBox").dialog('option','width',700);

但这不行。对话框的宽度是首先显示在其中的段落的宽度。我想做别的事吗?

这是对话框的html:

<div id = 'dialogContainer'>
  <p id = 'message'></p>
</div>

解决方法

确保你使用ui.resizable.js和ui.resizable.css

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...