<body class="main">
<div class="main-banner" style="background:red;">
</div>
</body>
$(document).ready(function() { function setHeight() { windowHeight = $(window).innerHeight(); $('.main-banner').css('height', windowHeight); }; setHeight(); $(window).resize(function() { setHeight(); }); })
No comments:
Post a Comment