JS Code
$(window).resize(function() {
$('#autoheight').css({height:$(window).height()-$('#header').height()});
}).trigger('resize');
Html Code
<html>
<head>
</head>
<body>
<div id=header style="height:100px;">
</div>
<div id=autoheight>
</div>
</body>
沒有留言:
張貼留言