Menu
CoddyTech

복습: 데이터 테이블

Coddy Tailwind CSS 여정의 반응형 UI 패턴 섹션에 포함된 레슨. 55개 중 25번째.

challenge icon

챌린지

어려움

너비는 최대 440px, 높이는 192px로 제한하고 양쪽 축으로 스크롤할 수 있는 일정 표시 영역을 만드세요. 기본 테이블 너비는 600px로 유지하고, 고정 레이아웃과 200px 너비의 첫 번째 열을 설정하세요. 두 열 머리글 모두 상단에 고정하고 흰색 배경과 쌓임 수준 10을 적용하세요. 캡션과 모든 머리글 범위를 유지하세요.

제공된 콘텐츠와 시맨틱 요소, ID를 유지하세요. 요청된 유틸리티 클래스를 수정하세요. 수정한 다음 ‘실행’ 미리 보기를 누르고, 결과를 채점하려면 ‘확인’/코드 실행을 누르세요. 제공된 JavaScript는 읽기 전용입니다.

직접 해보기

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Interface workshop</title><link rel="stylesheet" href="./styles.css"></head><body>
<div id="wrap" class="w-full max-w-[440px] h-48 overflow-hidden"><table id="table" class="w-[600px] border-separate border-spacing-0 table-auto"><caption>Studio schedule</caption><colgroup><col class="w-[200px]"><col></colgroup><thead><tr><th scope="col" class="bg-white">Session</th><th scope="col" class="bg-white">Room</th></tr></thead><tbody><tr id="r1" class=""><th scope="row">Session 1</th><td id="cell1">Room 1</td></tr><tr id="r2" class=""><th scope="row">Session 2</th><td id="cell2">Room 2</td></tr><tr id="r3" class=""><th scope="row">Session 3</th><td id="cell3">Room 3</td></tr><tr id="r4" class=""><th scope="row">Session 4</th><td id="cell4">Room 4</td></tr><tr id="r5" class=""><th scope="row">Session 5</th><td id="cell5">Room 5</td></tr><tr id="r6" class=""><th scope="row">Session 6</th><td id="cell6">Room 6</td></tr><tr id="r7" class=""><th scope="row">Session 7</th><td id="cell7">Room 7</td></tr><tr id="r8" class=""><th scope="row">Session 8</th><td id="cell8">Room 8</td></tr><tr id="r9" class=""><th scope="row">Session 9</th><td id="cell9">Room 9</td></tr><tr id="r10" class=""><th scope="row">Session 10</th><td id="cell10">Room 10</td></tr><tr id="r11" class=""><th scope="row">Session 11</th><td id="cell11">Room 11</td></tr><tr id="r12" class=""><th scope="row">Session 12</th><td id="cell12">Room 12</td></tr></tbody></table></div>
</body></html>

반응형 UI 패턴의 모든 레슨