나는 순서가 매겨진 목록과 몇몇 점들을 연결하려고하는데, 나는 그것을 작동시킬 수 없다. 활성 클래스에 따라 세그먼트를 켜고 추가로이 그림과 같은 세그먼트 사이에 학생 이름을 추가하고 싶습니다. CSS3의 순서있는 목록으로 점을 연결하기
그러면 활성 클래스로 다른 세그먼트를 켤 수 있습니다.
이것이 내가 시도한 것입니다. 내가 보여 리튬 요소
UPDATE
내가 업데이트 다시 내 바이올린에 활성화 클래스를 추가하는 것을 잊었다 때문에
UPDATE는
내 바이올린을 업데이트 나는 그 사람의 이름을 어디로 가야하는지.
ol.timetable li {
min-width: 25%;
}
.timetable {
width: 100%;
list-style: none;
list-style-image: none;
margin: 20px 0 20px 0;
padding: 0;
}
.timetable li {
float: left;
text-align: center;
position: relative;
}
.timetable .date {
display: block;
vertical-align: bottom;
text-align: center;
margin-bottom: 1em;
color: #2B2B2B;
}
.timetable .dot {
color: black;
border: 3px solid #B2B2B2;
background-color: #B2B2B2;
border-radius: 50%;
line-height: 1.2;
width: 1.2em;
height: 1.2em;
display: inline-block;
z-index: 2;
}
.timetable .active .date,
.timetable .active .dot span {
color: black;
}
.timetable .dot:before {
content: "";
display: block;
background-color: #B2B2B2;
height: 0.4em;
width: 50%;
position: absolute;
bottom: 0.9em;
left: 0;
z-index: 1;
}
.timetable .dot:after {
content: "";
display: block;
background-color: #B2B2B2;
height: 0.4em;
width: 50%;
position: absolute;
bottom: 0.9em;
right: 0;
z-index: 1;
}
.timetable li:first-child .dot:before {
display: none;
}
.timetable li:first-child .dot:after .active {
border: 3px solid #F26227 !important;
background-color: #F26227 !important;
}
.timetable li:last-of-type .dot:after {
display: none;
}
.timetable .active .dot {
border: 3px solid #F26227;
background-color: #F26227;
}
.timetable .active .dot:before,
.timetable .active .dot:before {
background-color: #F26227;
}
<ol class='timetable'>
<li class="active">
<span class='date'>5/26/2017</span>
<span class='active dot'>
<span>
</span>
</span>
</li>
<li class="active">
<span class='date'>5/29/2017</span>
<span class='active dot'>
<span></span>
</span>
</li>
<li>
<span class='date'>6/5/2017</span>
<span class='dot'>
<span></span>
</span>
</li>
</ol>
학생의 이름을 올리려는 HTML은 어디에서 계획하고 있습니까? 문제의 일부를 표시하는 이름을 처리하도록 코드를 업데이트 할 수 있습니까? – Serlite
자세한 내용을 보려면를 누르십시오. 모든 세그먼트 아래에 레이블이 있거나 최신 레이블이 있어야합니까? 세 점이 모두 활성화되어 있으면 레이블은 어디에 있습니까? – Serlite
내 질문이 업데이트되었습니다. 각 세그먼트 아래의 레이블. 그러나 레이블은 정확한 세그먼트에 동적으로 추가 될 것입니다. 따라서 한 세그먼트에서 오른쪽의 다른 경우 왼쪽에 나타납니다. 것은 정렬입니다. –