html - 如何在步进结束时停止步进线延伸
问题描述
我的步进线有问题。我希望在步骤结束时它不会延伸另一条线。我希望它在步骤结束时停止延伸它的线。下面是我试图实现的图像和代码。 这是图像结果
&:first-child {
._schedule-item {
&:after {
display: none;
}
}
}
&:last-child {
.schedule-item {
&:after {
display: none;
}
}
}
._stepper {
background-color: rgb(38,170,224);
border: 3px solid rgb(38,170,224);
border-radius: 100%;
width: 7px;
height: 7px;
&:after {
content: "";
position: absolute;
width: 1px;
position: absolute;
height: 100px;
background-color: rgb(38,170,224);
left: 29.5px;
}
}
解决方案
._stepper:last-child:after{
display: none;
}
使步进器成为最后一个孩子以显示无
推荐阅读
- sass - 在具有多个值的@each 循环中获取 (value + 1)
- reactjs - 0-10 分钟时间范围内的 React Victory 折线图
- c - BeFS 支持的最大文件大小的计算
- java - 不能干扰类型:TreeSet
使用 lambda 比较器 - java - Spark-Scala 无法推断模式(将输入路径验证推迟到数据源中)
- javascript - 如果没有要导出的更新,Bitsrc 会弹出组件
- php - 在事件监听器中获取多个字段
- javascript - 尝试使用变量分配 keyPath 时,“keyPath 选项不是有效的密钥路径”
- c - C,如何为另一个结构中的结构数组分配正确的空间量?
- android - ListAdapter submitList() - 如何滚动到开头