English 中文(简体)
2个四级职位
原标题:2 divs position
  • 时间:2009-09-29 17:31:30
  •  标签:

Again me with my divs =(. I have this:

<div id="header"></div>
<div id="body">
  <div id="..."></div>
  <div id="..."></div>

  <div id="content"></div>
</div>
<div id="footer"></div>

c) :

#body { width: 100%; margin 0 auto; }
#content {   position: absolute;   height: 200px; width: 100%; }
#footer {   height: 63px;   clear:both; }

Now result: content div with much text and footer under text.

我怎么能在所有内容领域做我的脚步?

最佳回答

我曾几次遇到这种情况。 I ve is used s打脚步。 它与几个浏览器广泛兼容,似乎只是工作。

问题回答

如果你使用这种打断,你将按要求看到(红)脚步:

#body {width: 600px; margin 0 auto; }
#content {position: relative; height: 200px; width: 600px; background-color: red; }
#footer {height: 63px; clear:both; width: 600px; background-color: blue; }




相关问题
热门标签