0

http://thestleonardsacademy.org/stlan/extracurricular.php

有问题的 div 是#content 和#newstiles。

#content 设置为 100% 高度,newstiles 也是如此,它是 content 的子级。然而,newstiles 是匹配内容的高度,而不是填充剩余空间。由于#content 中的其他 div,这意味着创建了一个滚动条,其中包含与 #content 中的页眉和页脚相等的附加滚动条。

我基本上希望#content 至少为 100% 的页面高度。然后我想要固定大小的页眉和页脚,以及#newstiles 来填充剩余空间。

4

2 回答 2

1

如果你不能clear:both在你的 css 中添加它直接添加到你的 _layout 页面中,就在你的 @RenderBody 下方

<br style="clear:both;" />
于 2013-04-25T09:20:18.640 回答
1

你的css中没有clear:,尝试clear:both;在你的css中添加一个。

于 2013-04-25T08:53:48.053 回答