JQuery UI selectmenu不';我不能正常工作

JQuery UI selectmenu不';我不能正常工作,jquery,jquery-ui,Jquery,Jquery Ui,我正在尝试使用selectmenu,但它不起作用。当我点击所选选项时,selectmenu不会隐藏。即使我将宽度设置为200px,它也是屏幕宽的。 这是我的密码。怎么了 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/smoothness/jquery

我正在尝试使用selectmenu,但它不起作用。当我点击所选选项时,selectmenu不会隐藏。即使我将宽度设置为200px,它也是屏幕宽的。 这是我的密码。怎么了

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/smoothness/jquery-ui.css" type="text/css">
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<script type="text/javascript">
   $(document).ready(function(){

      $("#speed").selectmenu();

   });
</script>

</head>
<body>
        <label for="speed">Choose</label>
        <select name="speed" id="speed" style="width: 200px">
           <option>Slower</option>
           <option>Slow</option>
           <option selected="selected">Medium</option>
           <option>Fast</option>
           <option>Faster</option>
        </select>


</body>
</html>

$(文档).ready(函数(){
$(“#速度”)。选择菜单();
});
选择
更慢的
慢
中等
快速的
更快
此版本的css不能使用selectmenu(),因为css类尚未在其中定义


如果您使用示例(1.11.4)的版本,它将正常工作。

在上的示例中,标签标记前有一个字段集标记,而表单标记添加该标记根本没有帮助