Menu
CoddyTech

סיכום: טבלאות נתונים

חלק מהיחידה תבניות ממשק משתמש רספונסיביות במסלול ה-Tailwind CSS של Coddy. שיעור 25 מתוך 55.

challenge icon

אתגר

קשה

בנה אזור תצוגה של לוח זמנים שרוחבו המרבי 440px וגובהו 192px, וניתן לגלול בו בשני הצירים. השאר את הטבלה המקורית ברוחב 600px, בפריסה קבועה ובעמודה ראשונה ברוחב 200px. קבע ששתי כותרות העמודות יהיו דביקות בחלק העליון, עם רקע לבן ורמת ערימה 10. שמור על הכיתוב ועל כל היקפי הכותרות.

שמור על התוכן שסופק, על האלמנטים הסמנטיים ועל המזהים. ערוך את מחלקות העזר המבוקשות. לאחר העריכות, לחץ על "הרצה" בתצוגה המקדימה, ואז על "בדיקה"/"להריץ קוד" כדי לבדוק את התוצאה. 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>

כל השיעורים ביחידה תבניות ממשק משתמש רספונסיביות