Learning Modernizr
暫譯: 學習 Modernizr
Adam Watson
- 出版商: Packt Publishing
- 出版日期: 2012-12-24
- 售價: $1,190
- 貴賓價: 9.5 折 $1,131
- 語言: 英文
- 頁數: 118
- 裝訂: Paperback
- ISBN: 1782160221
- ISBN-13: 9781782160229
海外代購書籍(需單獨結帳)
商品描述
Create forward-compatible websites using feature detection features of Modernizr
Overview
- Build a progressive experience using a vast array of detected CSS3 features
- Replace images with CSS based counterparts.
- Learn the benefits of detecting features instead of checking the name and version of the browser and serving accordingly.
In Detail
Modern web browsers support a whole range of new HTML5 and CSS3 features that make web development fun. But supporting old browsers can make a web developer's life difficult. With HTML5 Modernizr, you can check for features and deliver a design around them that is not only backward, but also forward compatible.
"Learning Modernizr" will guide you step by step through the process of converting to a feature rich CSS3 experience using the Modernizr feature detection JavaScript library. With this book, you can take an image-based design and gradually convert it to be 100 percent CSS based using Modernizr to detect feature support.
You will also learn how to implement the bulk of today’s leading CSS3 features not limited to animations, text shadow, content generation, and more. You will also learn to change the page using media queries to determine the dimensions of the page and alter the content accordingly as well as HTML5 features such as localstorage so you can save content to the browser.
You will learn everything you need to know in order to design progressively using feature detection. Prepare your design to not just handle legacy browsers, but additionally for the HTML5 standard features you know will be added into subsequent versions of the browser.
What you will learn from this book
- Perform feature detection with the Modernizr JavaScript library.
- Use HTML classes to alter the look of the page based on features found.
- Check for features using JavaScript
- Explore how feature detection differs from User Agent Detection.
- The difference between blocking versus nonblocking scripts .
- Create various backgrounds using multiple backgrounds and gradients.
- Draw and animate CSS3 clouds that literally rain features.
- Automatically generate vendor prefixes.
- Use CSS to draw and animate an assortment of shapes and shadows.
Approach
Written in an engaging, easy-to-follow style, "Learning Modernizr" is a practical guide for using the feature detection features of HTML5 Modernizr to create forward compatible sites.
Who this book is written for
"Learning Modernizr" is great for developers looking for a broad range of use cases for feature detection. It is particularly meant for web developers who want to take advantage of the cool new HTML5 and CSS5 features but at the same time deliver a design that is not only backward, but forward compatible.
商品描述(中文翻譯)
使用 Modernizr 的功能檢測功能創建向前兼容的網站
概述
- 利用大量檢測到的 CSS3 功能構建漸進式體驗
- 用基於 CSS 的替代品替換圖像。
- 了解檢測功能的好處,而不是檢查瀏覽器的名稱和版本並相應提供服務。
詳細內容
現代網頁瀏覽器支持一系列新的 HTML5 和 CSS3 功能,使網頁開發變得有趣。但支持舊瀏覽器可能會使網頁開發者的生活變得困難。使用 HTML5 Modernizr,您可以檢查功能並圍繞它們提供設計,這不僅向後兼容,還向前兼容。
《學習 Modernizr》將逐步指導您如何使用 Modernizr 功能檢測 JavaScript 庫將設計轉換為功能豐富的 CSS3 體驗。通過這本書,您可以將基於圖像的設計逐步轉換為 100% 基於 CSS 的設計,使用 Modernizr 來檢測功能支持。
您還將學習如何實現當今主要的 CSS3 功能,包括動畫、文字陰影、內容生成等。您還將學會使用媒體查詢來改變頁面,以確定頁面的尺寸並相應地更改內容,以及 HTML5 功能,如 localstorage,以便您可以將內容保存到瀏覽器中。
您將學習設計漸進式網站所需的所有知識,使用功能檢測來準備您的設計,不僅能處理舊版瀏覽器,還能為您知道將在瀏覽器後續版本中添加的 HTML5 標準功能做好準備。
您將從這本書中學到什麼
- 使用 Modernizr JavaScript 庫進行功能檢測。
- 使用 HTML 類根據檢測到的功能改變頁面的外觀。
- 使用 JavaScript 檢查功能
- 探索功能檢測與用戶代理檢測的區別。
- 阻塞腳本與非阻塞腳本之間的區別。
- 使用多個背景和漸變創建各種背景。
- 繪製和動畫化 CSS3 雲朵,讓它們實際上下雨功能。
- 自動生成供應商前綴。
- 使用 CSS 繪製和動畫化各種形狀和陰影。
方法
《學習 Modernizr》以引人入勝、易於理解的風格撰寫,是使用 HTML5 Modernizr 的功能檢測功能創建向前兼容網站的實用指南。
本書的讀者對象
《學習 Modernizr》非常適合尋找功能檢測廣泛用例的開發者。特別適合希望利用新穎的 HTML5 和 CSS5 功能的網頁開發者,同時提供不僅向後兼容,還向前兼容的設計。