私は画像のドラッグのためのコードを書かれている作業とjQueryを使ってリサイズされていません。 私はイメージをドラッグすることができますが、私はイメージのサイズ変更を行うことができません。 以下に自分のコードを書いています。サイズ変更可能な属性は
$(document).ready(function() {
$("#action").draggable({
cursor: "move",
containment: "parent"
});
$("#action").resizable({
handlers: "all",
ghost: true
});
});
#action {
background-color: #aaa;
height: 200px;
width: 200px;
}
#limits {
background-color: lavender;
height: 300px;
width: 300px;
}
.image {
height: 200px;
width: 200px;
}
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themses/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js">
</script>
<div id="limits">
<div id="action">
<img src="http://drkeyurparmar.com/wp-content/uploads/2015/02/dummy-article-img.jpg" class="image">
</div>
</div>
次これはカーネルアローラの答えをしてみてください – vikrant
起こるworking.sameものではありません。 – Mahi
また動作していません – vikrant