Web Fundamentsals學習1-Multiple-Screen-Site

來源:互聯網
上載者:User

標籤: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。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.