0
我正在使用Gumby framework網格,並且存在列問題。我有以下代碼:具有1個像素高度的列
<div class="row appointment-container">
<div class="columns one">
<img class="appt-calendar" src="appt.png">
</div>
<div class="columns eight">
<div id="last-appointment">
<h4 class="confirm-appointment next-block">
<span class="appt-text">Lorem ipsum intellectus testus integer string float test test test</span>
</h4>
</div>
</div>
<div class="columns three">
</div>
</div>
用下面的SCSS:
.appointment-container {
position: relative;
.appt-calendar {
max-height: 100%;
max-width: 100%;
height: auto;
position: absolute;
top: 0;
bottom: 0;
margin: auto;
}
}
「列八」和「列三」顯示正常,但在「列一個」只有一個像素的高度儘管有內容。什麼會導致這種情況發生?
Gumby是否使用浮動列來顯示其列?你的'img'有任何風格嗎?將'display:block'添加到'img'並查看是否修復了它。如果不是,請嘗試將其浮動。 – brouxhaha
我相信Gumby使用表格。顯示:塊沒有工作。我將編輯我的問題以包含我擁有的CSS。 – Jonfor
你的CSS的語法不正確...(*除非你使用SASS或我不熟悉的東西*) –