HTML5 をしばらく使用したいのですが、<frameset>
html コードを使用して何かを作成することができました。2 つの iframe のサイズを変更できるようにしたいのですが、並べて表示したいのですが、2 つの iframe の間に問題があります。古い で実装されているようなサイズ変更が必要です<frameset>
。
これは私のhtmlコードです:
<body>
<div class="resizable1">
<iframe class="menu" src="menu.html"></iframe>
</div>
<div class="resizable2">
<iframe class="mainContent" src="events.html"></iframe>
</div>
</body>
これは私のcssです:
.ui-resizable-helper {
border: 1px dotted gray;
}
.resizable1 {
float: left;
width: 20%;
height: 80%;
display: block;
border: 2px solid gray;
overflow: hidden;
position: relative;
}
.resizable2 {
float: left;
width: 75%;
height: 80%;
display: block;
border: 2px solid gray;
overflow: hidden;
position: relative;
}
.menu {
float: left;
width: 20%;
height: 80%;
}
.mainContent {
float: left;
width: 75%;
height: 80%;
}
これは私のjQueryスクリプトです:
$(function() {
$(".resizable1").resizable({
animate : true,
animateEasing : 'swing',
imateDuration : 500
});
$(".resizable2").resizable({
animate : true,
animateEasing : 'swing',
imateDuration : 500
});
});
</script>