다음은 내가 개발중인 페이지의 개요입니다. IE7과 Firefox 3 렌더링 차이
<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en">
<head>
<link rel="stylesheet" href="../css/test.css" />
<title>Prosperity Login</title>
</head>
<body>
<div id="banner">
</div>
<div id="subbanner">
</div>
<div id="body">
<div id="colA">
</div>
<div id="colB">
<div id="B1">
</div>
<div id="B2">
</div>
</div>
<div id="colC">
</div>
<div id="colD">
</div>
</div>
<div id="footer">
</div>
</body>
</html>
그리고 CSS : IE7 완벽하게 페이지를 렌더링하는 동안 파이어 폭스 3에서
* {
margin: 0px;
padding: 0px;
}
div {
border: 1px dotted;
}
#banner {
height: 70px;
width: 100%;
}
#subbanner {
height: 30px;
width: 100%;
}
#body {
background-color: #CCFFCC;
width: 80%;
}
#colA{
float: left;
height: 120px;
width: 24%;
}
#colB{
float: left;
height: 80px;
width: 24%;
}
#colC{
float: left;
height: 120px;
width: 24%;
}
#colD{
float: left;
height: 120px;
width: 24%;
}
#B1{
float: right;
height: 48px;
width: 80%;
}
#B2{
float: right;
height: 28px;
width: 80%;
}
#footer{
height: 30px;
width: 100%;
}
는, (녹색 배경) 신체 DIV 거의 아무것도 찌그러된다. CSS 2.1 표준 (Meyer의 O'Reilly 서적을 통해)에서 알 수 있듯이, float div는 컨테이너 블록 내에서 플로트 3에서 분명히 나타나지 않습니다.
Firefox의 렌더링이 호환되면, 내가 빠졌어?
Opera는 이것을 Firefox와 비슷하게 렌더링합니다. – strager
http://jsbin.com/eyanu – strager