0
Jquery를 사용하여 사용자가 브라우저 창 크기를 조정하고 쉽게 애니메이션을 추가 할 때 div 높이를 조절하는 솔루션을 찾고 있습니다. 약간의 지연. .graph
클래스의 <div>
이 있어야 300px의 최소 높이를 유지하고 창 크기 조정시 700px까지 성장할 수 있어야합니다.div의 높이를 창에서 미리 결정한 높이로 조정
HTML
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;
}