无法将 jQuery 对话框设置为宽度 < 150 像素

Can't set jQuery dialog to width < 150px

我似乎无法将 jQuery 对话框的宽度设置为小于 150 像素。换句话说,如果我将它设置得更小,它仍然会以 150px 显示。

对话调用:

$('#menu').dialog({modal:false, height:window.innerHeight-20, width:125,dialogClass: "no-close", position: { 我的: "right bottom",位于:"right bottom",属于:window }});

完整代码:

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
        
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
        <script language="javascript">
            var menuOpen=false;
            function toggleFunctionMenu()
            {
                if(!menuOpen)
                {
                    $('#menu').dialog({modal:false, height:window.innerHeight-30, width:125,dialogClass: "no-close", position: { my: "right bottom", at: "right bottom", of: window }});
                    $('#menuButton').html("Close");
                    menuOpen=true;
                }
                else
                {
                    $('#menu').dialog("close");
                    $('#menuButton').html("Open");
                    menuOpen=false;
                }
            }


        </script>
        <style type="text/css">
            #menu
            {
                display: none;
                background-color: yellow;
                width:100%;
                height:100%;
                border-style:solid;
                border-width: 1px;
                border-color:black;
                
            }

              #menuButton
              {
                  float:right;
              }
        </style>
    </head>
    <body>
        <button onclick="toggleFunctionMenu()" id="menuButton">Open</button>
        <div id="menu">
        </div>
    </body>
</html>

<!DOCTYPE html>
<html>
    <head>
     <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <style type="text/css">
            #menu
            {
                display: none;
                background-color: yellow;
                width:100%;
                height:100%;
                border-style:solid;
                border-width: 1px;
                border-color:black;

            }

              #menuButton
              {
                  float:right;
              }
        </style>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
        <script language="javascript">
            var menuOpen=false;
            function toggleFunctionMenu()
            {
                if(!menuOpen)
                {
                    $('#menu').dialog({modal:false, height:window.innerHeight-30, width:'25px',dialogClass: "no-close", position: { my: "right bottom", at: "right bottom", of: window }});
                    $('#menuButton').html("Close");
                    menuOpen=true;
                }
                else
                {
                    $('#menu').dialog("close");
                    $('#menuButton').html("Open");
                    menuOpen=false;
                }
            }


        </script>
        </head>
           <body>
        <button onclick="toggleFunctionMenu()" id="menuButton">Open</button>
        <div id="menu">
        </div>
    </body>
    </html>