【发布时间】:2020-12-26 14:04:30
【问题描述】:
在我的 Angular 应用程序中,我创建了引导卡来显示一些信息。
但它并没有达到我期望的设计,我尝试了很多方法。
component.html
<div class="bs-example">
<div class="card" id="dd" style="max-width: 800px;">
<div class="row no-gutters">
<div class="col-sm-3" >
heading-1
</div>
<div class="col-sm-3">
<div>heading-1</div>
<div class="col-sm-3">
<div>heading-3</div>
<div class="card-body">
<h5>info-1</h5>
<h5>info-1</h5>
</div>
</div>
</div>
</div>
component.css
body{
background-color: #2d3436;
background-image: linear-gradient(315deg, #2d3436 0%, #000000 74%);
color:white;
}
.bs-example{
margin: 20px;
}
#dd{
background-color: #2d3436;
background-image: linear-gradient(315deg, #2d3436 0%, #000000 74%);
color:white;
font-weight: bold;
border-bottom: 1px solid grey;
}
我想在行中显示数据,将 4 个标题(heading-1,heading-2..)放在单行中 并在每个标题下放置信息和一条带边框的信息,并在下一行中将其他信息放置在每个标题下。
有人可以帮我解决这个问题吗?我是新手。
【问题讨论】:
标签: css angular twitter-bootstrap bootstrap-4