Cộng đồng Hỏi & Đáp của Inflearn
Không có người viết
Bài viết có thông tin người viết đã bị xóa.
24.Pure CSS 콘텐츠 슬라이더 프로토타입 01 (풀스크린 탭 콘텐츠 슬라이더 프로토
Viết
·
392
2
slide content 3개 까지만 있는데,
3개 이상이면 어떻게 해야되나요??
HTML/CSSjquery
Câu trả lời 2
1
codingworks
Người chia sẻ kiến thức
만약 4개라면 input[type=radio] 개수와 label의 개수를 맞춰 주세요.
그리고 width: 33.3333% 를 width: 25%로 해주시면 됩니다.
그리고 2번째 질문은 html, css 모든 코드를 복사해서 올려주세요.
수업 내용은 아니지만 체크해볼게요~
snrtn943653
.items {
height: 100vh;
width: 300%; // 이부분을 600%으로 하니까 되네요:)
transition: 0.5s;
position: absolute;
top: 0;
left: 0;
}1
.items div:nth-child(1):before,
.items div:nth-child(2):before,
.items div:nth-child(3):before,
.items div:nth-child(4):before,
.items div:nth-child(5):before,
.items div:nth-child(6):before {
content: '';
position: absolute;
width: 100% !important;
height: 100% !important;
}
이렇게 했는데 nth-child 4 부터는 보이지가 않고,
nth-child 1 에 slide content 4의 문구가 들어가 있습니다.





