【发布时间】:2020-09-19 02:52:15
【问题描述】:
我无法使用引导程序和 CSS 将卡片中图像右侧的内容置于图像下方。我曾尝试在网上和引导文档中寻找解决方案,但我找不到任何可以解决我的问题的方法。当我低于某个响应大小时,我只想将 AppName、Description 和 AppDescription 放置在图像下方。感谢您的帮助。
下面的HTML
<div class="card">
<div class="row no-gutters">
<div class="col-auto col-md-6">
<img src="img/image.jpg" class="img-fluid image" alt="PayCloud App Demo" width="620" height="465">
</div>
<div class="col">
<div class="card-block px-2">
<p class="card-title AppName">AppName</p>
<p class="card-title Description">Restaurant Payment Service - January 2020</p>
<p class="card-text AppDescription">App Description.</p>
<a href="link.html"><span class="button">View Project</span></a>
</div>
</div>
</div>
</div>
CSS 下面
.AppName{
font-family: itc-avant-garde-gothic-pro,sans-serif; /* ITC Bold */
font-weight: 700;
font-style: normal;
font-size: 42px;
margin-top: 10%;
margin-bottom: 0;
text-align: left;
font-size: 42px;
width: 50%;
margin-left: 5%;
opacity: 80%;
}
.Description{
color: #869FC9;
width: 60%;
margin-left: 5%;
margin-top: 0;
margin-bottom: 5%;
}
.AppDescription{
opacity: 87%;
width: 90%;
margin: auto;
font-family: realist, sans-serif;
font-weight: 400;
font-style: normal;
font-size: 18px;
margin-bottom: 2%;
}
【问题讨论】:
标签: html css twitter-bootstrap bootstrap-4 frontend