標籤:style blog http 使用 io for ar 2014
你的一個運行於多裝置網站(Your First Multi-device Site)
遵循的步驟:
1.定義資訊架構(information architecture)和頁面結構(structure of the pages)。
2.添加設計項目,並且使它是響應式的,而且在各個裝置看起來都不錯
指南:
01 建立你的頁面內容和結構 https://developers.google.com/web/fundamentals/getting-started/your-first-multi-screen-site/content
02: 使它變成自適應 https://developers.google.com/web/fundamentals/getting-started/your-first-multi-screen-site/responsive
01-Create Your Content and Structure
使用者在form表單輸入手機號碼,應該調用出數字鍵,方便使用者輸入。
網站使用的圖片分為2種類型:
1.內容圖片
2.樣式圖片
img標籤必須保證有alt屬性,這樣螢幕助讀程式才能更好識別這是一張圖片,而且讀出來。
02-Make it Responsive
https://developers.google.com/web/fundamentals/getting-started/your-first-multi-screen-site/responsive
開發理念:Mobile First.首先開發基於手機螢幕的頁面,然後我們擴充到大螢幕尺寸。
總結:
在新項目開發中,移動優先考慮,在涉及到使用百分比布局時,特別是在處理表單的情況下,可以考慮使用box-sizing:border-box,這個屬性非常好用,很容易處理input等相關元素的寬度一致問題。下一篇分析使用box-sizing。