【发布时间】:2020-10-07 04:11:26
【问题描述】:
我正在尝试创建几个带有文本的框和一条连接它们的线。我为每个盒子创建了一个类,如下所示:
.box {
background: white;
border: 1px solid black;
color: black;
border-radius: 8px;
padding: 8px 20px;
margin: 20px;
}
然后创建几个盒子我有这个:
<div fxLayout="row" fxLayoutAlign="space-between">
<div class="box" *ngFor="let box of boxes" fxLayout="column" fxLayoutAlign="start center">
<div>
{{box.firstText}}
</div>
<div>
{{box.secondText}}
</div>
</div>
</div>
我正在尝试添加一条连接每个框的水平线,因此我尝试在每个循环中的框末尾添加一个 <hr> 标记,如下所示:
<div fxLayout="row" fxLayoutAlign="space-between">
<div class="box" *ngFor="let box of boxes" fxLayout="column" fxLayoutAlign="start center">
<div>
{{box.firstText}}
</div>
<div>
{{box.secondText}}
</div>
<hr> //Addded here
</div>
</div>
但是这条线没有出现在任何地方
【问题讨论】:
标签: html css angular-flex-layout