没有合适的资源?快使用搜索试试~ 我知道了~
首页CSS Master 2nd Edition
CSS Master 2nd Edition
需积分: 10 38 浏览量
更新于2023-05-25
评论
收藏 7.93MB PDF 举报
CSS Master is tailor-made for the web designer or front-end devleoper who’s really serious about taking their skills to the next level. Discover how to keep ahead of the game by adhering to best practice and employing the most effective, cutting-edge CSS techniques.
资源详情
资源评论
资源推荐


(9:,84++0:054
Copyright © 2018 SitePoint Pty. Ltd.
Product Manager: Simon Mackie
Technical Editor: Rachel Andrew
English Editor: Ralph Mason
Cover Designer: Alex Walker
5:0*,5-#0./:9
All rights reserved. No part of this book may be reproduced, stored in a retrieval system or
transmitted in any form or by any means, without the prior written permission of the publisher,
except in the case of brief quotations embodied in critical articles or reviews.
5:0*,5-0()020:?
The author and publisher have made every effort to ensure the accuracy of the information
herein. However, the information contained in this book is sold without warranty, either express
or implied. Neither the authors and SitePoint Pty. Ltd., nor its dealers or distributors will be held
liable for any damages to be caused either directly or indirectly by the instructions contained in
this book, or by the software or hardware products described herein.
$8(+,3(815:0*,
Rather than indicating every occurrence of a trademarked name as such, this book uses the
names only in an editorial fashion and to the benet of the trademark owner with no intention of
infringement of the trademark.
Published by SitePoint Pty. Ltd.
48 Cambridge Street Collingwood
VIC Australia 3066
Web: www.sitepoint.com
Email: books@sitepoint.com
ISBN 978-0-6483315-0-6 (print)
ISBN 978-1-925836-16-5 (ebook)
Printed and bound in the United States of America
i

)5;:$0A(4?85=4
Tiffany B. Brown is a freelance web developer based in Los Angeles, California. She has worked
on the web for nearly two decades with a career that includes media companies, marketing
agencies, and government.
Brown was also part of the Digital Service Team at the United States Department of Veterans
Affairs, the United States Digital Service, and the Opera Software Developer Relations team.
Brown is also a co-author of SitePoint's Jump Start: HTML 5, and has contributed to Dev.Opera, A
List Apart, SitePoint.com, and Smashing Magazine.
)5;:0:,!504:
SitePoint specializes in publishing fun, practical, and easy-to-understand content for web
professionals. Visit http://www.sitepoint.com/ to access our blogs, books, newsletters, articles,
and community forums. You’ll nd a stack of information on JavaScript, PHP, Ruby, mobile
development, design, and more.
2 CSS Master

Table of Contents
Preface.........................................................................................................................vii
Who Should Read This Book? ................................................................................... viii
Conventions Used ...........................................................................................................viii
Supplementary Materials................................................................................................ix
/(6:,8 CSS Architecture and Organization............10
File Organization ................................................................................................................11
Specicity ............................................................................................................................. 13
Choosing What to Name Things ...............................................................................26
Atomic CSS ..........................................................................................................................30
Conclusion ...........................................................................................................................34
/(6:,8 Debugging and Optimization............................35
Browser-based Developer Tools...............................................................................36
Debugging for UI Responsiveness...........................................................................48
Minication...........................................................................................................................59
Code-quality Tools...........................................................................................................61
Conclusion .......................................................................................................................... 66
/(6:,8 Custom Properties........................................................67
Table of Contents iii

Dening a Custom Property........................................................................................ 68
Using Custom Properties............................................................................................. 69
Custom Properties and the Cascade ...................................................................... 71
Using Custom Properties with JavaScript.............................................................72
Custom Properties and Components......................................................................73
Using Custom Properties and Media Queries.....................................................76
Conclusion ...........................................................................................................................77
/(6:,8 Working with Text..........................................................78
Better-looking Text with @font-face ........................................................................79
Variable Fonts.....................................................................................................................84
Strategies for Font Optimization............................................................................... 88
Writing Modes ....................................................................................................................92
Conclusion ........................................................................................................................106
/(6:,8 Layouts....................................................................................107
Display Types and Normal Flow.............................................................................108
Floating Elements and Normal Flow.....................................................................117
Positioning and Stacking Elements........................................................................123
Using CSS Multicolumn Layout ...............................................................................134
Creating Layouts with CSS Grid...............................................................................157
Creating Flexible Layouts with Flexbox...............................................................191
Box Alignment and Distribution..............................................................................200
iv CSS Master
剩余350页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0