gpt4 book ai didi

angular - 如何使用 labelPosition ="bottom"更改 Material 步进线样式

转载 作者:行者123 更新时间:2023-12-01 18:43:04 24 4
gpt4 key购买 nike

我不会创建这样的风格:

enter image description here

我尝试为已编辑步骤下的所有行设置样式,但有一些行位于 mat-step-headers 之外。

::ng-deep .mat-horizontal-stepper-header {
&[ng-reflect-state='edit'] + .mat-stepper-horizontal-line {
border-top-width: 4px;
border-top-color: blue;
}
}

这是结果:

enter image description here

那么,我怎样才能做到呢?

最佳答案

标题中的行头和行尾。您可以将此类与反射状态一起使用。

.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before { 
border-top-width: 4px;
border-top-color: blue;
}

.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after {
border-top-width: 4px;
border-top-color: blue;
}

.mat-stepper-horizontal-line {
border-top-width: 4px;
border-top-color: blue;
}

关于angular - 如何使用 labelPosition ="bottom"更改 Material 步进线样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56527550/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com