html - 引导列未对齐的文本和图像
问题描述
美好的一天,我有这个问题,我的引导行列未对齐,文本在 col-8 下,图像在 col-4 下。但是,即使它们在同一行中,文本和图像也是未对齐的。任何帮助将不胜感激,我有一个针对该问题的 js fiddle 链接。
代码片段:
<div class="col-md-8 justify_text"> <span> <h4 class="bold_font color-mwc-orange">WHO WE ARE</h4> <br> <h4 class="color-mwc-blue text-height-wide2">My White Card is an innovative collaboration of the recent revolutionary healthcare approach; The first of its kind beauty, health, and wellness membership that offers an array of the best discount coupons and unlimited services in pursuit of a convenient access through a Mobile App technology. </h4> <h4 class="color-mwc-blue text-height-wide2">We offer different discount coupons from aesthetics, cosmetic surgeries, dental services, functional medicine, preventive healthcare and wellness programs from our Exclusive, Premiere and carefully curated clinics and excellent doctors in the Metro.</h4> </span> </div> <div class="col-md-4"> <br><br><br> <img src="img/home_who_we_are.jpg" class="img-responsive spacer center-block"> </div> </div> </div>
jsfiddle:https ://jsfiddle.net/xp3zqLra/4/
现在的状况
- 预期布局
解决方案
.row {
display:flex;
}
.row > *
{
align-self:end;
}
推荐阅读
- powershell - 我如何根据有输出文件的时间来衡量完成百分比?
- go - Why is a float64 type number throwing int related error in Go
- java - Android 得到 html 响应而不是 json 响应 | 价值
嗨,我很难弄清楚导致此错误的原因。直到我尝试使用调试并发现我得到的是 html 响应而不是 json 响应。请帮我解决这个问题。
检查这个java代码:
从这一点开始,错误被触发
- python - 修复了 Django 提供的默认值问题
- reactjs - Material-DataTable 禁用内置搜索
- xslt - Firefox Quantum v67 不呈现 XSLT (xsl:call-template & xsl:with-param)
- kubernetes - 在 Kubernetes (GKE) 上部署 Strapi
- go - 去 XML 抑制自动生成的标签?
- c# - 使用 API 删除和重新创建数据库时,Azure Cosmos DB 上的存储设置不断从 Unlimited 更改为 Fixed
- python - 递归回溯以列出具有给定总和的所有子集?