화면 푸터를 항상 바닥에 놓고 싶을때
1
2
3
4
5
6
7
8
9
10
<script type=”text/javascript”>
//<![CDATA[
jQuery(window).resize(function(){
if(jQuery(“section”).height() + jQuery(“footer”).height() + 93 < jQuery(window).height()) {
jQuery(“section”).css(“height”, jQuery(window).height() - jQuery(“footer”).height() - 93);
}
});jQuery(window).resize();
//]]>
</script>
This article is licensed under CC BY 4.0 by the author.