私は 3 列の全幅ページを作成していますが、固定幅の 2 つの列が必要で、もう 1 つの列はそれらの間に全幅に収まるようにします。
| Fixed Width || Variable Width || Fixed Width |
| Always Left || Adapts To Browser Window Size || Always Fixed Right |
動作しないフロートで試してみたところ、ページを少し編集する必要があるまで動作するディスプレイテーブルを使用することを誰かが提案しました。これで、右側の列は問題ありませんが、左側の 2 つの列にはコンテンツが必要な場所の上部ではなく、一番下にあります。誰でもこれを手伝ってもらえますか。私が使用しているコードは次のとおりです。
.pageContent{
background-color: #DADEE1;
width: 100%;
padding: 10px 0px 10px 0px;
}
.gridSystem{
display: table;
}
section{
display: table-cell;
}
.mainSidebar{
float: left;
vertical-align: top;
width: 140px;
}
.mainPage{
width: inherit;
overflow: hidden;
margin: 0px 0px 0px 0px;
padding: 20px;
}
.mainAdvert{
float: right;
width: 140px;
}
<div class="pageContent gridSystem">
<section class="mainSidebar"></section>
<section class="mainPage"></section>
<section class="mainAdvert"></section>
<div class="clearBoth"></div>
</div>
ありがとうございました