주제: DOCTYPE 적용 후 IE에서의 다단 100% Height Table Layout 풀림 문제
CDK 유저 여러분 새해 복 많이 받으세요~
제목이 이해하기 쉽게 쓰여졌는지 모르겠네요.
다름이 아니라 100%의 높이 값을 가진 테이블 레이아웃을 짜려고 하는데요. (팝업 창 등에 쓰여질)
Doctype 을 HTML 4.01 Transitional 에 맞추어 하려는데
IE 에서는 테이블 row의 높이값이 풀어져 버리네요 ![]()
물론 Doctype 을 제외하면 적용이 되지만요.
해결법을 찾으려 하는데 쉽지가 않아요.
소스 봐주시고 혹시 좋은 방법이 있다면 도움을 좀 부탁드리겠습니다.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>TITLE</title>
<style type="text/css">
/* <![CDATA[ */
body { margin: 0px; padding: 0px; background: #eee; overflow: hidden; }
html, body { height: 100%; border: none; }
table { width: 100%; height: 100%; }
table thead tr { height: 30px; }
table tfoot tr { height: 30px; }
/* ]]> */
</style>
</head>
<body scroll="no">
<table border="1">
<thead>
<tr>
<th>
header
</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
footer
</td>
</tr>
<tbody>
<tr>
<td>
body
</td>
</tr>
</tbody>
</table>
</body>
</html>적용 후 화면 결과
FF
IE
최종 편집 : riix (2009-01-06 01:26 PM)

