Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Jquery ui可调整大小插件不';行不通_Javascript_Jquery_Jquery Ui_Jquery Resizable - Fatal编程技术网

Javascript Jquery ui可调整大小插件不';行不通

Javascript Jquery ui可调整大小插件不';行不通,javascript,jquery,jquery-ui,jquery-resizable,Javascript,Jquery,Jquery Ui,Jquery Resizable,我到底做错了什么 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" con

我到底做错了什么

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Draggable crop</title>
        <script type="text/javascript" src="/scripts/jquery.js"></script>
        <script type="text/javascript" src="/scripts/jquery.ui.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $('.image_outline').resizable();
            });
        </script>

        <style type="text/css">
            .image_outline {
                border: dashed 1px #000;
                width: 300px;
                height: 200px;
            }
        </style>
    </head>

    <body>
        <div class="image_outline"></div>
    </body>
</html>

可牵引作物
$(文档).ready(函数(){
$('.image_outline')。可调整大小();
});
.图像轮廓{
边框:虚线1px#000;
宽度:300px;
高度:200px;
}
以下是JSFIDLE上的代码:


为什么可调整大小的插件不能使
div
调整大小?

在添加正确的CSS链接后效果良好:

对于该JSFIDLE,我在以下位置链接到托管的jQuery UI CSS: