我正在使用Gumby 框架网格,但列有问题。我有以下代码:
<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;
}
}
“第八列”和“第三列”显示正确,但“第一列”的高度只有一个像素,尽管其中有内容。什么会导致这种情况发生?