# 第三週 - 響應式網頁設計 [範例程式碼下載](https://drive.google.com/file/d/1r8z8i3LzzEKIzDBlztkpFmuXK6EDyMx3/view?usp=sharing) ## 課前資訊 * **記得錄影記得錄影記得錄影 (講三次** * 慶祝小節作業提交大爆炸,月中就要超過 2024 * [申請小組分組週五截止,建議有要一起做最終任務再參加](https://forms.gle/umBASzhGZbjbHJiV6) * [線下同學會](https://chalk-freedom-ec6.notion.site/2025-1eb6ab47eb4880dfb3f4ee3ee7806975) 5/18 截止報名 * 台北報名:150 人、剩餘 10 名額,預期這一兩天關閉 * 台中報名:40 人、剩餘 15 名額 * 高雄報名:30 人、剩餘 30 名額 * 抽書時段 * 1369463744857505933 * 1369826132563595305 * 1370188521150615654 * 1370550908739649587 * 1370913296605122690 * 1371275684558929951 * 1371638072654954628 * 三個建議:1370629247420465222 ## 環境建立(以下 no 編號為範例程式碼編號) * viewport 設定 (no.1) ``` <meta name="viewport" content="width=device-width, initial-scale=1.0"> ``` * CSS media Queries 語法 (no.2) ## 權重覆蓋遊戲 * HTML 標籤:1 分 * class 選擇器:10 分 * ID 選擇器:100 分 * inline style:1000 分 * !important:10000 分 ## 中場休息 1. [體驗營同學會,週五截止](https://chalk-freedom-ec6.notion.site/2025-1eb6ab47eb4880dfb3f4ee3ee7806975),**台北場即將額滿,可申請線上錄影場。建議想瞭解後續直播培訓班的學員報名** :::spoiler 圖示 ## 六週短期培訓課 [](https://www.hexschool.com/courses/web-layout-training-1st.html) ## 九個月前端工程師培訓班  ::: ## 寬度與單位配置 * max-width:運用在 圖片與 HTML 標籤上(no.3) * % 單位的運用 (no.4)、box-sizing 講解 * max-width 與 % 的運用 (no.5) ## 排版細節 * 三欄排版 (no.6) * 三欄圖文排版 (no.7) * 完整版型設計(no.8) ## RWD 網站分享 * [Apple](https://www.apple.com/tw/) * [Mac](https://www.apple.com/tw/mac/) * [medium](https://medium.com/) * [日本麥當勞](https://www.mcdonalds.co.jp/) * [IT 邦幫忙](https://ithelp.ithome.com.tw/) * [https://roov.jp/](https://roov.jp/) * [https://ippukuandmatcha.jp/](https://ippukuandmatcha.jp/) * [https://www.frontage.jp/](https://www.frontage.jp/) * [taiwan can help](https://taiwancanhelp.us/) ## 斷點規劃+大網站設計範例 * PC - 1200px * iPad - **992px** * iPad以下 - **767px** * iPhone 6 Plus - **414px (視專案族群)** * iPhone 6 - **375px (視專案族群)** * iPhone 5、SE - **320px** 有學生應該會很好奇, 為什麼 還會有一個 767px 的斷點, 因為通常 iPad 直式 是 Android、IOS 平版很常見的大小, 再接著 767px~320px 我便會視為他們都是手機 size, 所以在 767 px 以下時就會直接把他變成手機版型, 畢竟 767px~6xx size 相當少見,一開始各位學生可以先確保一些熱門斷點上優化即可, 至少可以滿足 80% 以上的客戶, 不用太吹毛求疵,當然你力求優化的話也是 ok 的。 再來 320px 是你最小需要注意的 SIZE, 現在仍然有許多手機是 320px,尤其是小 size 的 iPhone, 以前甚至有 240px 的手機,但現在已經相當稀有了。 * 所以如果是 PC 做到手機的話,語法就會有點像是這樣: ``` .wrap{ max-width: 960px; } .header { height: 80px; } .list li{ width: 33%; } .list h3{ font-size: 24px; } @media(max-width: 768px){ .header{ height: auto; } .list li{ width: 48%; margin: 0 1%; } } @media(max-width: 767px){ .list li{ width: 98%; } } @media(max-width: 414px){ .list li{ font-size: 18px; } } ``` ## 手機版網頁設計大忌 * 網頁有 x 軸 ## 任務講解 * [最終任務 - 個人品牌網站](https://rpg.hexschool.com/#/training/12062817613289895665/board/content/12062817613289895666_12062817613289895682?tid=12062817613290018192) * 先不要做首頁,做部落格頁面 * [小組任務介紹](https://hackmd.io/LVZbSWptSkmDJ6uT8-_7wA)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up