【发布时间】:2012-06-10 06:59:34
【问题描述】:
我正在使用 1140px 流体网格 (cssgrid.net) 布局。
我遇到了一些问题..
我的布局是这样的:
Side Menu - Content
- Content
- Content
- Content
- etc. etc.
我的问题是,我的布局是这样的:
Side Menu - Content
Content
Content
Content
Content
etc. etc.
我想要,所以我的“侧边菜单”是全高的,所以它会将内容推到“右侧”。
我的布局(共 12 列):
<div class="container">
<div class="row">
<div class="twocol">
-- Side Menu Content Here --
</div><!-- END 2col -->
<div class="tencol last">
content content content
</div>
<div class="tencol last">
content content content
</div>
<div class="tencol last">
content content content
</div>
<div class="tencol last">
content content content
</div>
</div><!-- END .row -->
</div><!-- END .container -->
CSS 是:
.container {
padding-left: 20px;
padding-right: 20px;
}
.row {
width: 100%;
/*max-width: 1140px; */
min-width: 755px;
margin: 0 auto;
overflow: hidden;
}
.onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol {
margin-right: 3.8%;
float: left;
min-height: 1px;
}
.row .onecol {
width: 4.85%;
}
.row .twocol {
width: 13.45%;
}
.row .threecol {
width: 22.05%;
}
.row .fourcol {
width: 30.75%;
}
.row .fivecol {
width: 39.45%;
}
.row .sixcol {
width: 48%;
}
.row .sevencol {
width: 56.75%;
}
.row .eightcol {
width: 65.4%;
}
.row .ninecol {
width: 74.05%;
}
.row .tencol {
width: 82.7%;
}
.row .elevencol {
width: 91.35%;
}
.row .twelvecol {
width: 100%;
float: left;
}
.last {
margin-right: 0px;
}
我希望你能帮助我。谢谢。
【问题讨论】:
-
提示:您可能想要创建一个jsfiddle.net。在寻求任何 HTML 技术的帮助时,它都是一个不错的工具。