我試圖把3個div放在與以下代碼相同的行中。錯誤位置的Div內容
我的CSS和HTML:
.row {
display: table;
width: 100%
}
.row > div {
display: table-cell;
height:30px; /*demo purposes */
}
#left-bar {
width: 10%;
background-color: #FF0000;
}
#middle-bar {
width: 70%;
background-color: #6600FF;
}
#right-bar {
width: 20%;
background-color: #99FF99;
}
<div class="row">
<div id="left-bar"> here I have an accordion </div>
<div id="middle-bar"> heve a have my canvas </div>
<div id="right-bar"> and here I have an editor</div>
</div>
不知怎的,中等吧(我的畫布)的內容被放置在正確的位置,但其他兩個div內容是在頁面底部,你可以在這裏看到see photo。你們知道爲什麼會這樣嗎?
哪個瀏覽器/版本,你的測試? (您的照片鏈接已損壞) – Sampson
Chromium Ubuntu – Rafael
您能張貼小提琴嗎?因爲照片的鏈接不工作? – Alex