- Mastering PostCSS for Web Design
- Alex Libby
- 142字
- 2021-07-14 11:12:27
Chapter 4. Building Media Queries
The days of simply using one device to browse an online site are long since gone: responsive sites will work on a range of devices, from smart phones through to digital TVs and laptops. A key element of making sites responsive is the use of media queries. In this chapter, we'll explore how to create them using PostCSS, see how they compare to the likes of Less and SASS, and how the use of PostCSS makes for a more flexible approach in comparison to standard preprocessors. This chapter will cover the following technical topics:
- Revisiting media queries
- Working through the basics of media queries using PostCSS
- Adding responsive support
- Optimizing media queries
- Retrofitting support for older browsers
- Taking things further—exploring the hover feature in CSS4 media queries
Let's make a start…!
推薦閱讀
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(第三版)
- Getting Started with Gulp(Second Edition)
- C#完全自學(xué)教程
- Practical DevOps
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)習(xí)題解答與上機(jī)指導(dǎo)
- Python Web數(shù)據(jù)分析可視化:基于Django框架的開發(fā)實(shí)戰(zhàn)
- Mastering Python Design Patterns
- 區(qū)塊鏈架構(gòu)之美:從比特幣、以太坊、超級賬本看區(qū)塊鏈架構(gòu)設(shè)計(jì)
- Python一行流:像專家一樣寫代碼
- SEO教程:搜索引擎優(yōu)化入門與進(jìn)階(第3版)
- Java EE輕量級解決方案:S2SH
- PhantomJS Cookbook
- 熱處理常見缺陷分析與解決方案
- Learning Rust