html - 带连接线的 Angular Flex 盒子
问题描述
我正在尝试创建几个带有文本的框和一条连接它们的线。我为每个盒子创建了一个类,如下所示:
.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>
但是这条线没有出现在任何地方
解决方案
推荐阅读
- android - 获取“内部错误”/API 访问谷歌控制台发生未知错误
- mysql - mysql链接表,如果连接表中不存在则返回null
- r - ee$List$repeat 的问题
- airflow - 气流 initdb 的问题
- python - 如何使用 python 从头开始编写 Midi 文件
- multithreading - 珀尔。2 个文件中的共享哈希线程
- android - 后退按钮不会禁用 android React native 中的特定屏幕
- python - 字典的值 = i 处 2dlist 的总和
- c++ - for循环输入不正确的原因
- python - 图像减去连续图像的Python代码