나는 절대 위치 및 백분율로 상대적인 페이지 &을 사용하고 있습니다. HTML & 본문은 100 %로 설정되고 컨테이너 div는 상대적이며 내부 div는 절대적입니다. 컨테이너 div에 설정 한 반복되는 배경 이미지가 페이지를 채우지 못합니다. 이유는 무엇입니까? 미리 감사드립니다! 여기컨테이너 div를 채우지 않고 백분율로 상대 절대 위치로 다시 채우기
내가있어 무엇 :
<style type="text/css">
html, body {
width:100%;
height:100%;}
.container {
width:1000px;
height:100%;
background-image:url('background.jpg');
position: relative;
margin-left:auto;
margin-right:auto;
}
.header {
width:1000px;
height:300px;
background-color:#ffffff;
position: absolute;
top:0px;
left:0px;
}
.content {
width: 680px;
position:absolute;
top: 350px;
left: 310px;
}
.post {
width: 630px;
padding: 20px;
padding-top: 50px;
}
.title {
width: 650px;
height: 20px;
padding: 10px;
position: absolute; left: -10px; top: 10px;
}
</style>
<body>
<div class="container">
<div class="header">
Placeholder for header image.
<p><a href="index.html">Home</a></p>
</div>
<div class="content">
<div class="post">
<div class="title">Welcome</div>
<img src="PLACEHOLDER.JPG" alt="Proposal Photo" width="630" />
</div>
</div>
</div>
닫힌 스타일 태그 뒤에 HTML –
이 게시되어 있으면 도움이 될 수 있습니다. 눈에 보이지 않습니까? – user1801221
이제 브라우저에서 페이지가 완전히로드되지 않았습니다. 내 문제. –