【发布时间】:2020-06-24 03:07:02
【问题描述】:
我正在开发进度向导,我创建了一个水平进度向导,所以在这里我如何使它成为垂直或有任何库?
下面是我的 stackblitz 网址 https://stackblitz.com/edit/angular-ivy-n6dp3x
css:
ul {
display: flex;
align-items: stretch; /* Default */
justify-content: space-between;
width: 100%;
margin: 0;
padding: 0;
position: relative;
}
li {
display: block;
flex: 0 1 auto; /* Default */
list-style-type: none;
background-color: white;
padding: 0 0.75em;
z-index: 1;
}
li:first-child {
padding-left: 0;
}
li:last-child {
padding-right: 0;
}
ul:after {
content: '';
border-bottom: 1px solid lightgray;
position: absolute;
transform: translateY(-50%);
top: 50%;
width: 100%;
}
【问题讨论】:
标签: javascript css angular sass