html에 100% 배경을 넣고 센터정렬을 했습니다.. 근데 ㅠㅠ
100% 배경을 넣고 센터정렬을 했습니다..
근데 익스6에서는 센터정렬이 잘되다가 윈도우창 하단에 스크롤바가 생기면 센터정렬이 멈추거든요..
다른 브라우져들은 하단에 스크롤이 생기든 않생기든 무조건 센터정렬이되고요...
제 질문의 요지는 익스6처럼 다른브라우져에서도 하단에 스크롤이 생기면 센터정렬이 멈추게 하는겁니다...
혹은 지정한 픽셀에서는 센터정렬이 멈추게하고싶은데..
회원님들의 은총어린 답변 기다리겠습니다 ㅠ
<style>
#body{
width:100%;
height:1000px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
background:url('http://wdlook.com/ms_design/example/img/test_bg.png') no-repeat center top; left:0; top:0;
}
#wrapper{
width:1000px;
height:500px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
}
</style>
<div id="body" class="png">
<div id="wrapper">
내용나오라오바
</div>
</div><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
근데 익스6에서는 센터정렬이 잘되다가 윈도우창 하단에 스크롤바가 생기면 센터정렬이 멈추거든요..
다른 브라우져들은 하단에 스크롤이 생기든 않생기든 무조건 센터정렬이되고요...
제 질문의 요지는 익스6처럼 다른브라우져에서도 하단에 스크롤이 생기면 센터정렬이 멈추게 하는겁니다...
혹은 지정한 픽셀에서는 센터정렬이 멈추게하고싶은데..
회원님들의 은총어린 답변 기다리겠습니다 ㅠ
<style>
#body{
width:100%;
height:1000px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
background:url('http://wdlook.com/ms_design/example/img/test_bg.png') no-repeat center top; left:0; top:0;
}
#wrapper{
width:1000px;
height:500px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
}
</style>
<div id="body" class="png">
<div id="wrapper">
내용나오라오바
</div>
</div><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 3개
14년 전
doctype선언안하고 작업하셨나봐요? 아래소스로 해보세요
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ko" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style>
#body{
width:100%;
height:1000px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
background:url('http://wdlook.com/ms_design/example/img/test_bg.png') no-repeat center top; left:0; top:0;
}
#wrapper{
width:1000px;
height:500px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
}
</style>
</head>
<body>
<div id="body" class="png">
<div id="wrapper">
내용나오라오바
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ko" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style>
#body{
width:100%;
height:1000px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
background:url('http://wdlook.com/ms_design/example/img/test_bg.png') no-repeat center top; left:0; top:0;
}
#wrapper{
width:1000px;
height:500px;
border:2px solid #000000;
margin: 0 auto; text-align: left;
}
</style>
</head>
<body>
<div id="body" class="png">
<div id="wrapper">
내용나오라오바
</div>
</div>
</body>
</html>
14년 전
doctype 선언했습니다.. 그래도 않되요 ㅠ
14년 전
녀우비님말대로 소스확인해보세요;; 저는 똑띠 나오는데;;
게시글 목록
| 번호 | 제목 |
|---|---|
| 12333 |
JavaScript
한글만 되게 하는 자바스크립트 입니다.
|
| 12332 |
JavaScript
간단한 팝업창 중앙에 띄우기 입니다.
|
| 12331 |
JavaScript
2단계 드롭다운 레이어 메뉴 입니다.
|
| 12329 |
JavaScript
동적 막대그래프
1
|
| 12328 |
JavaScript
간단한 위로가기 자바스크립트 입니다.
|
| 12327 |
JavaScript
따라다니는 link 퀵메뉴 입니다.
|
| 12326 |
JavaScript
글씨의 색을 자동으로 변환시켜주는 자바스크립트 입니다.
|
| 12325 |
JavaScript
인스타그램 사진가져오기
|
| 12324 |
jQuery
checkedbox 컨트롤
|
| 12323 |
jQuery
radio 컨트롤
|
| 12322 |
jQuery
select box 컨트롤
|
| 12321 | |
| 12320 |
node.js
Node.js - 실시간 위치 추적 (2)
|
| 12319 | |
| 12318 |
JavaScript
특정 이메일 입력 금지및 이메일 유효성 검사하기 입니다.
|
| 12317 |
JavaScript
마우스 오버시 그림 변하게 하는 자바스크립트 입니다
|
| 12316 |
JavaScript
시작과 멈춤이 가능한 스크롤 텍스트 입니다.
|
| 12315 |
JavaScript
이미지 없이 라운딩 박스 + 보더 표현하기 입니다.
|
| 12314 |
JavaScript
Trim 함수 자바스크립트로 사용하기 입니다.
|
| 12313 |
JavaScript
실제 이미지 크기 알아내기 입니다.
|
| 12312 |
JavaScript
present 자바스크립트 입니다.
|
| 12311 |
JavaScript
이미지 미리 로딩시켜놓기 입니다.
|
| 12310 |
JavaScript
다각형 이미지슬라이드쇼 자바스크립트 입니다.
|
| 12309 |
JavaScript
가운데 정렬된 홈페이지에서 따라다니는 레이어 자바스크립트 입니다.
|
| 12308 |
JavaScript
클릭시 펼쳐지는 메뉴 입니다.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기