Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.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
jquery可调整大小不适用于imag_Jquery_Html - Fatal编程技术网

jquery可调整大小不适用于imag

jquery可调整大小不适用于imag,jquery,html,Jquery,Html,jquery Resizeable在我的代码中不起作用,它只是 工作 然后直接加载图像。 不工作 将图像添加到div时 这是我的密码:- <html lang="en"> <head> <title>Outfit Demo</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">

jquery Resizeable在我的代码中不起作用,它只是 工作 然后直接加载图像。 不工作 将图像添加到div时

这是我的密码:-

<html lang="en">
<head>
<title>Outfit Demo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css"/>
<script type="text/javascript">
jQuery(document).ready(function(event){
   jQuery(".pic1").draggable();
   jQuery(".pic1").resizable();
});
  function select(src)
  {
  path = "<img class=\"pic1\" src=\""+src+"\" height=\"300px\" width=\"300px\"/>";
  document.getElementById("image").innerHTML=path;
  }
  </script>
</head>

<body>
<div id="leftpanel" style="position:absolute;left:0;width:50%;">
<div style="left:0;height:30%;" id="image"></div>
</div> 
<div id="middlepanel" style="width: 100%; height: 100%; position:absolute;left:500;width:50%;">
<img class="pic1" src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcT-cYNnwQZF6R0T5v11nnXOmdWWEGj4Tf7tKMhbB_FsNFo8yLmaeg" height="300px" width="700px" onclick="select(this.src)"/>
</div> S
</body>
</html>

装备演示
jQuery(文档).ready(函数(事件){
jQuery(“.pic1”).draggable();
jQuery(“.pic1”).resizeable();
});
功能选择(src)
{
路径=”;
document.getElementById(“image”).innerHTML=path;
}
s

请帮我解决这个问题,使用jquery事件处理我们需要应用live的页面加载中没有的元素

看这里

这对我有用。谢谢


我明白你说的话。非常感谢

看到了吗?这很有效,但为什么它对我不起作用呢?我在jquery方面很差。如何在这方面既能拖动又能调整大小@sambapenugonda
$('.pic1').live('mouseover',function(){
    $(this).draggable();
});