我正在为我的网页布局,我遇到了 960gs 问题。
我使用一个包含条目和侧边栏的部分标签。
添加新条目时,侧边栏会向下移动到最后一个条目。
它应该是怎样的:
外观:
<section class="container_24">
{% for n in publisher.object_list %}
<article class="grid_16" style="background: white; height: 100px;">Article</article>
{% endfor %}
<div class="grid_5" style="background: white; height: 100px; background: red;"> Sidebar </div>
条目下推侧边栏,我想避免它
应该如何解决?通过在绝对侧边栏上使用相对容器?或者是否可以使用 960gs?
最佳答案
再想一想,只需将 {position:absolute;}
添加到 .container_24 .grid_5 {
您的页面应该看起来如您所愿
关于html - 960gs 和循环,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8068714/