$(document).ready(function() {
$( "#box" ).resizable();
});
.container {
width: 450px;
height: 450px;
background-color: #000;
}
#box {
width: 150px;
height: 150px;
background-color: red;
padding: 0.5em;
}
<div class="container">
<div id="box">
</div>
</div>
私が見るのは、黒いボックス内の赤いボックスだけで、次の例のようにサイズ変更アイコンがまったく表示されません。
http://jqueryui.com/resizable/#helper
私は彼らの css ファイルを見ました、それは.ui-widget-content
それが動作するクラスのようですが、なぜですか?
そこにアイコンのサイズ変更ポップアップが表示される理由は何ですか? うまくいかないのはなぜですか?
そこの:
<html>
<head id="html">
<title>Jquery project</title>
<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
</head>
<div class="container">
<div id="box">
</div>
</div>
<style>
.container {
width: 450px;
height: 450px;
background-color: #000;
}
#box {
width: 150px;
height: 150px;
background-color: red;
padding: 0.5em;
}
</style>
<script>
$(document).ready(function() {
$( "#box" ).resizable();
});
</script>
</html>