More Related Content Similar to 利用HTML5+CSS3打造行動裝置友善網站-響應式網頁技術介紹
Similar to 利用HTML5+CSS3打造行動裝置友善網站-響應式網頁技術介紹 (20) 利用HTML5+CSS3打造行動裝置友善網站-響應式網頁技術介紹27. 響應式網頁(RWD)
Ethan Marcotte 於2010年在 A List Apart
雜誌的一篇文章中發明了術語
Responsive Web Design
.net 雜誌將RWD列為 2012 年頂級網頁
設計趨勢的第二名 (漸進增強是第一名)
(Why)各種裝置螢幕大小不一,固定大
小的網頁無法在所有裝置達到最佳呈現
效果
26
34. 響應式網頁(RWD)
CSS Media Query語法
33
屬性 結果
min-width 任何超過查詢中指定寬度的瀏覽器都會套用規則。
max-width 任何未超過查詢中指定寬度的瀏覽器都會套用規則。
min-height 任何超過查詢中指定高度的瀏覽器都會套用規則。
max-height 任何未超過查詢中指定高度的瀏覽器都會套用規則。
orientation=portrait 任何高度大於或等於寬度的瀏覽器都會套用規則。
orientation=landscape 任何寬度大於高度的瀏覽器都會套用規則。
完整屬性參考
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries
media_type: | all | handheld | print | projection | screen | tv | …
39. 響應式網頁(RWD)
Bootstrap
◦ (2014/6)No.1 project on GitHub with over
73,000 stars and more than 27,000 forks
◦ the most popular HTML, CSS, and JS
framework for developing responsive,
mobile first projects on the web
提供一組標準的HTML與CSS排版框架
供快速開發網頁雛型並支援RWD
38
52. 響應式網頁(RWD)
Bootstrap並提供常見的網站元素與互動基底
51
CSS Components JavaScript
Typography Glyphicons Transitions
Code Dropdowns Modal
Tables Button groups Dropdown
Forms Button dropdowns Scrollspy
Buttons Input groups Tab
Images Navs Tooltip
Helper classes Navbar Popover
Breadcrumbs Alert
Pagination Button
Labels Collapse
Badges Carousel
Jumbotron Affix
Page header
Thumbnails
Alerts
Progress bars
Media object
List group
Panels
Responsive embed
Wells
58. 結語
HTML5與網頁無障礙(Accessibility)技術
◦ WAI-ARIA(Accessible Rich Internet Applications)
W3C制訂之動態網站(使用ajax,javascript)可用性標準
-2104/3/20 W3C Recommendation
WAI-ARIA參考資料
◦ https://developer.mozilla.org/en-
US/docs/Web/Accessibility/ARIA/Web_applications_and_ARIA_FAQ
◦ https://blog.othree.net/log/2010/10/10/introduction-to-wai-aria-1/
WAI-ARIA檢測工具
◦ https://itaccessibility.illinois.edu/web-evaluation-tools
57