<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
#a
{
background:#33F;
width:1000px;
height:1000px;
}
#b
{
width:500px;
height:500px;
background:#F00;
}
#c
{
margin-top:50px;
height:200px;
width:200px;
background:#FF0;
}
</style>
</head>
<body>
<div id="a">
<div id="b">
<div id="c">
</div>
</div>
</div>
</body>
</html>
为什么 div#c 会从浏览器顶部边缘化,而不是远离 div#b。