61,110
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
</head>
<body>
<div style="height:300px; background:#ccc;">
<div style="width:50px; height:50px; background:#f00; margin:0 0 0 0;"></div>
</div>
</body>
</html>
<body>
<!-- 父 -->
<div style=" height:300px; background:#ccc; position: relative;">
<!-- 沉底 -->
<div style=" width:100%; height:50px; position: absolute; bottom: 0px;">
<!-- 红方 -->
<div style="width:50px; height:50px; background:#f00; margin: 0 auto;"></div>
</div>
</div>
</body>
<body>
<div style="height:300px; background:#ccc;">
<div style="width:50px; height:50px; background:#f00; margin:250px auto 0 auto;"></div>
</div>
</body>
<body>
<div style="height:300px; background:#ccc; overflow:hidden;">
<div style="width:50px; height:50px; background:#f00; margin-top:250px; margin-left:auto; margin-right:auto;"></div>
</div>
</body>