저는 "끈적 푸터"를 만들 때 찾을 수있는 모든 것에 대해 봤지만 제대로 읽지 못했습니다. 다음은 HTML/신체 DIV, 주요 콘텐츠 사업부 내 바닥 글 DIV 내 CSS 코드입니다 :내 푸터 스틱을 만들 수 없으며 콘텐츠 용 스크롤 막대를 제공 할 수 있습니다.
body, html {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
height: 100%;
font-family: Cooper Black, Copperplate Gothic Bold, Britannic Bold, Garamond, Arial;
font-size: 1em;
color: #666666;
background-color: #EDF5FC;}
#main {
position: relative;
top: 380px;
width: 90%;
height:100%;
min-height: 100%;
margin: 0px 5% -20px 5%;
z-index: 10;
padding-top: 0px;
padding-bottom: 20px;
overflow:scroll;}
#footer {
clear:both;
position:fixed;
margin-left:auto;
margin-right:auto;
margin-bottom:0px;
margin-top: -20px; /* negative value of footer height */
width:98%;
height:20px;
padding-top:3px;
background: #0E28B1;
text-align: center;
color: #ffffff;
font-size: .7em;
font-weight:bold;
z-index:1;}
내 바닥 글 사업부 내 홈페이지 DIV 밖에이 (사이트의 주요 내용은 내가 닫고, 주요 사업부 내부 그것과 바닥 글 div 있습니다.) 고정 위치와 margin-bottom : 0을 사용하여 하단에 스틱을 얻을 수 있지만 내 콘텐츠에 대한 스크롤 막대가 없습니다.
이것은 전혀 작동하지 않습니다. 내가 도대체 뭘 잘못하고있는 겁니까?