0
我正在尋找一種解決方案,使用jquery縮放div的高度,當用戶重新調整瀏覽器窗口的大小並添加一個輕鬆動畫時,略有延遲。我需要<div>
與.graph
類別的最小高度爲300px,並且能夠在窗口重新大小上增長到700px。在窗口調整div的高度到預定高度
HTML
<div id="slide1" class="current">
<div class="graph resize">
This is where a SVG graph would go
</div>
</div>
CSS
body,html{
margin:0;
height:100%;
}
.current{
height:100%;
min-height:750px;
position:relative;
background:#ccc;
padding:5px;
}
.graph{
position:absolute;
width:950px;
min-height:300px;
background:#fafafa;
box-shadow: 0 1px 0 1px #DAD8D8;
}