我真的被引导程序中的列系统弄糊涂了,这是我所拥有的:
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Cards</h1>
</div>
<div class="row">
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-2 col-md-2 mb-2">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Stop</div>
<div class="h5 mb-0 font-weight-bold text-gray-800">8</div>
</div>
<div class="col-auto">
<span class="material-icons">
pan_tool
</span>
</div>
</div>
</div>
</div>
</div>
我有8张卡,其中2张由于空间不足而排在第二行,我如何才能获得专业的视图?我需要显示我们拥有,启动,停止,运行的12种机器的不同状态。 ..
这是jsfiddle的链接 https://jsfiddle.net/rbk27ote/1/
答案 0 :(得分:0)
您只需要将class'col'放入所有要等于的div元素,如下所示:-
const Part = (props) =>{
return (
<p>{props.part + " " + props.exec}</p>
)
}
export default Part