html - CSS 表格单元格和 Bootstrap 的奇怪对齐问题

标签 html css

我们遇到了一个问题,由于某种原因,最后一行有大量无法解释的填充。我花了两个小时试图弄清楚这一点。如果这很简单,我很抱歉。

https://www.harpercollege.edu/maker/dev-index.php

enter image description here

<div class="circle-box-table-container">
<div id="circle-box-7" class="col-xs-12 col-sm-12 col-md-4 circle-box-alt-box">
<div class="box">
<div class="circle-box-content-containter">
<div class="circle-box-content-heading">Youth STEAM Class&nbsp;</div>
<div class="circle-box-content-text"><a href="{{f:2323900}}"><img class="pull-left" style="margin-bottom: 5px; margin-right: 5px;" title="Youth STEAM Class" src="{{f:28913025}}" alt="Building Model" width="90" height="94" /></a><em><strong>The new "shop class"</strong></em><br />We are bringing back shop classes for kids. We&rsquo;ll teach 21st century skills in a hands-on, fun and engaging environment.</div>
</div>
</div>
</div>
<div id="circle-box-8" class="col-xs-12 col-sm-12 col-md-8 circle-box-alt-box-wide">
<div class="box">
<div class="circle-box-content-containter"><img class="" src="{{f:28930375}}" alt="Maker-Space-Banner" width="100%" /></div>
</div>
</div>
</div>

最佳答案

在最后一个盒子上使用vertical-align: top。浏览器自动为表格单元格填充,以与其余内容保持均匀大小。

关于html - CSS 表格单元格和 Bootstrap 的奇怪对齐问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56047444/

相关文章:

css - React 导入的 css 不可用

javascript - Bootstrap 3 + respond.js + IE8

javascript - 无法使用 .show() 显示隐藏图像

javascript - 将文本从一个 html 加载到另一个 html 文件中的两列

javascript - 在 HTML5 中,我在哪里可以找到硬盘上由 getDirectory() 方法创建的目录?

html - Azure 与 OAuth 2 - google+ 登录信息和注销按钮

javascript - html5 popstate 事件无法在 chrome 和 ie 上触发

html 在 IE8 中不显示相同

jquery - 从内容中动态提取图像以放入花式框的 href

html - 如何通过 HTML 标签和 BODY 标签使用 2 个平铺背景图像