DIV 100%가 안잡히네요 ㅠ.ㅠ;

· 2010-08-23 (월) 15:05:53 · 2133 · 3
에러내용 : div 하단 점선을 빼려다 보니 div가 width="100%"가 안먹네요.
주소는 http://m.terrorboy.pe.kr/mobile.php 입니다. 익스에서는 정상 출력 되지만 크로스 브라우징 할경우 확실히 티가 납니다.


head.php 내용
[code]
<div style="position:absolute; top:0%; height:50px; background-color:#ccc; width:100%;">
<div style="float:left;"><img src="<?=$mobile_skin_root?>/img/icon/pre.png"></div>
<div style="float:right;"><img src="<?=$mobile_skin_root?>/img/icon/home.png"></div>
</div>
<div style="position:absolute; top:50px;">
[/code]


index.php 내용
[code]
<?include("$mobile_skin_root/head.php");?>
<!-- 홈페이지 사용모드 on -->
<?
// 버튼아이콘 출처
// http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=26658&sca=&sfl=wr_subject&stx=%B9%F6%C6%B0&sop=and
//
?>
<? /* 사용자 os 출력
<script type="text/javascript">
// document.write(navigator.userAgent) // os 출력
document.write(navigator.userAgent) // os 출력
</script>
*/?>


<div style="border-bottom:1px dashed; padding:0%; width:100%; height:30px; line-height:30px; background-color:#000;" onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='<?=$mobile[menu1_url]?>'; } ;return false"><?=$mobile[menu1]?></div>

<div>
사용 스킨 : <font color="blue"><?=$mobile[mobile_skin]?></font>
<br>os 가드 사용 :
<?if($mobile[os_guard]=="on"){ echo "<font color='blue'>사용중</font>";} else{ echo "<font color='red'>꺼짐</font>"; }?>
<br>모바일 홈페이지 사용 :
<?if($mobile[mobile_mode]=="on"){ echo "<font color='blue'>사용중</font>"; } else{ echo "<font color='red'>꺼짐</font>"; }?>
</div>


<!-- 홈페이지 사용모드 on 끝 -->
<?include("$mobile_skin_root/footer.php");?>
[/code]


footer.php 내용
[code]
</div>
<div style="position:absolute; top:90%; background-color:#ccc; height:10%; width:100%; text-align:center; font-size:10pt; Vertical-align:middle;">
<div valign="middle"><?=$mobile[copyright]?></div>
</div>
[/code]
|

댓글 3개

head.php 내용
<div style="position:absolute; top:50px; width:100%">하고 잡혔습니다. ㅡㅡ;;;;
흠..
익스8과 다른 브라우져와의 완벽한 호환을 원하신다면
문서 첫라인 !doctype 을 선언하고 하시면 완전 거의 똑같이 나옵니다.
단 이럴경우 익스7과 익스6용으로 따로 css를 만드셔야하는게 문제 ㅎ
감사합니다. 그거 선언 했구요 div만 쓰는것에서 UL,IL로 바꿨습니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
10-08-24 조회 1,661
10-08-24 조회 2,345
10-08-24 조회 1,839
10-08-24 조회 1,602
10-08-24 조회 1,081
10-08-24 조회 2,624
10-08-24 조회 1,634
10-08-23 조회 1,628
10-08-23 조회 1,601
10-08-23 조회 1,689
10-08-23 조회 1,549
10-08-23 조회 1,611
10-08-23 조회 2,240
10-08-23 조회 3,151
10-08-23 조회 1,609
10-08-23 조회 1,665
10-08-23 조회 2,333
10-08-23 조회 1,875
10-08-23 조회 1,618
10-08-23 조회 2,134