"연결된 점"스타일을 얻는 데 어려움이 있지만 HTML 및 CSS만으로 진행률 표시 줄을 만들려고했습니다.진행 표시 줄 CSS 및 HTML 만
다음 요소를 기반으로하기 때문에 : 어떻게 요소를 원 뒤에 배치 할 수 있습니까? 일종의 z- 색인이 붙었습니까?
이상적 점 1 2, 2 세를 연결하는 연결해야하고, 3은 4https://jsfiddle.net/bzjs1h9r/1/
<section class="steps">
<ul class="checkout">
<li class="current">
<div class="index">...</div>
<div class="caption">Email</div>
</li>
<li class="inactive">
<div class="index">2</div>
<div class="caption">Your Info</div>
</li>
<li class="inactive">
<div class="index">3</div>
<div class="caption">Delivery</div>
</li>
<li class="inactive">
<div class="index">4</div>
<div class="caption">Review</div>
</li>
</ul>
.steps {
.checkout {
display: table;
table-layout: fixed;
width: 100%;
li {
display: table-cell;
padding-left: 0;
text-align: center;
&:before {
margin: 0 auto;
display: block;
width: 30px;
height: 30px;
content: "";
text-align: center;
float: none;
position: relative;
top: 30px;
border-radius: 100%;
border: 2px solid #79b93e;
}
&:after {
content: "";
border: 1px solid rgba(135, 135, 135, 0.2);
width: 100%;
webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(180deg);
display: block;
position: absolute;
top: 60px;
right: -53px;
}
&:last-child {
&:after {
display: none;
}
}
.caption {
text-transform: uppercase;
margin-top: 5px;
font-weight: 900;
}
}
}
.container-fluid {
max-width: 550px;
overflow:hidden;
}
}
이
와 바이올린입니까? – Dekel
질문을 자세히 설명해 주시겠습니까? 왜 "z-index"속성을 사용할 수 없습니까? – Arjun