템플릿을 만드는 방법을 연습했습니다. 내 첫 번째 문제는 내용이 전체 화면을 채우기에 충분히 길지 않은 경우 화면 아래쪽에 바닥 글을 붙이는 방법입니다. 이 튜토리얼을 사용하여 해결되었습니다. http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page사이드 바에 아래쪽으로 채우기
다른 문제는 사이드 바를 바닥 글까지 줄이는 방법이었습니다. 여기
<div id="wrapper">
<div id="header">
header here
</div>
<div id="container">
<div id="sidebar">
sidebar here
</div>
<div id="content">
content here
</div>
</div>
<div class="cls"></div>
<div id="footer">
footer here
</div>
</div>
는 CSS입니다 : 여기
는 HTML의
body{
padding: 0;
margin: 0;
}
.cls{
clear:both;
}
#wrapper{
min-height: 100%;
position: relative;
}
#header{
background-color: #DDDDDD;
height: 60px;
}
#container{
padding-bottom: 60px;
width: 100%;
}
#sidebar{
background-color: #87CEFA;
width: 220px;
float: left;
padding-right: 20px;
}
#content{
width: 75%;
float:right;
}
#footer{
background-color: #CCCCCC;
bottom: 0;
position: absolute;
width: 100%;
height: 60px;
}
이미지 링크 열기, 왼쪽에있는 사람은 나는 내가 원하는 .... 지금 무엇을 가지고 결과는 오른쪽에있는 것입니다. http://www.4shared.com/photo/CoXrUWP2/template.html
비슷한 질문이 이전에 제기되었습니다. http://stackoverflow.com/questions/712689/css-div-stretch-100-page-height –
이것을 확인하십시오 [튜토리얼] (http://www.subcide.com/articles/creating-a-css-layout- from-scratch /) 도움을 받으십시오. – khurram