저는 CSS 전문가가 아니며 템플릿에 문제가 있습니다. 문제는 스크롤 다운입니다. 나는 모든 템플리트에 정확하게 놓을 수는 없다.CSS 레이아웃에서 스크롤 다운 문제를 해결하는 방법
여기 템플릿의 전체 코드가 있습니다. 복사하여 붙여 넣기 만하면됩니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> stu nicholls | CSS PLaY | cross browser fixed header/footer layout basic method </title>
<style type="text/css" media="screen">
#printhead {display:none;}
html {
height:100%;
max-height:100%;
padding:0;
margin:0;
border:0;
background:#fff;
font-size:80%;
font-family: "trebuchet ms", tahoma, verdana, arial, sans-serif;
/* hide overflow:hidden from IE5/Mac */
/* \*/
overflow: hidden;
/* */
}
body {height:100%; max-height:100%; overflow:hidden; padding:0; margin:0; border:0;}
#content {display:block; height:100%; max-height:100%; overflow:hidden; padding-left:0px; position:relative; z-index:3; word-wrap:break-word;}
#head {position:absolute; margin:0; top:0; right:18px; display:block; width:100%; height:50px; background:#fff; font-size:1em; z-index:5; color:#000; border-bottom:1px solid #000;}
#foot {position:absolute; margin:0; bottom:-1px; right:18px; display:block; width:100%; height:25px; background:#fff; color:#000; text-align:right; font-size:2em; z-index:4; border-top:1px solid #000;}
.pad1 {display:block; width:18px; height:50px; float:left;}
.pad2 {display:block; height:50px;}
.pad3 {display:block; height:500px;}
#content p {padding:5px;}
.bold {font-size:1.2em; font-weight:bold;}
.red {color:#c00; margin-left:5px; font-family:"trebuchet ms", "trebuchet", "verdana", sans-serif;}
h2 {margin-left:5px;}
h3 {margin-left:5px;}
</style>
</head>
<body>
<div id="head">
<div class="pad1"></div><h1>Header</h1>
</div>
<div id="content">
<div class="pad2"></div>
<IFRAME name="teste" src="http://www.yahoo.com" width="100%" height="100%" frameborder=0></IFRAME>
<!--<div class="pad3"></div>-->
</div>
<div id="foot">Footer</div>
</body>
</html>
이 문제를 해결하기 위해 내가 할 수있는 몇 가지 단서가 있습니까?
이미지보기, Firefox에서 테스트 중입니다. 아래쪽 스크롤이 웹 페이지 전체에 배치되어야하며이 순간 헤더 섹션을 건너 뛸 필요가 있습니다.
베스트 감사합니다.
문제에 대해 자세히 설명해주세요. 바닥 글을 고정시키고 싶지 않고 맨 끝에 놓고 싶지 않으십니까? –
이 스크롤 막대는 iframe의 스크롤 막대이므로 페이지 전체를 스크롤 할 수 없습니다. – Sotiris