logo资料库

Smashing CSS 无水印原版pdf.pdf

第1页 / 共305页
第2页 / 共305页
第3页 / 共305页
第4页 / 共305页
第5页 / 共305页
第6页 / 共305页
第7页 / 共305页
第8页 / 共305页
资料共305页,剩余部分请下载后查看
Cover
Copyright
About the Author
Contents
Introduction
Part I: FUNDAMENTALS
1: TOOLS
FIREBUG
WEB DEVELOPER TOOLBAR
INTERNET EXPLORER DEVELOPER TOOLBAR (OR TOOLS)
DRAGONFLY (FOR OPERA)
WEB INSPECTOR (SAFARI)
XRAY
SELECTORACLE
DIAGNOSTIC STYLE SHEET
REBOOT STYLES
IE9.JS
2: SELECTORS
PSEUDO WHAT?
TARGETS WITH STYLE
SPECIFICITY
IMPORTANCE
WHAT HAPPENS WHEN YOU OMIT SHORTHAND VALUE KEYWORDS
SELECTIVELY OVERRIDING SHORTHANDS
UNIVERSAL SELECTION
ID VS. CLASS
ID WITH CLASS
MULTICLASSING
SIMPLE ATTRIBUTE SELECTION
ATTRIBUTE SELECTION OF CLASSES
ID VS. ATTRIBUTE SELECTOR
SUBSTRING ATTRIBUTE SELECTION
MORE SUBSTRING ATTRIBUTE SELECTION
CHILD SELECTION
SIMULATED PARTIAL CHILD SELECTION
SIBLING SELECTION
GENERATING CONTENT
Part II: ESSENTIALS
3: TIPS
VALIDATE!
ORDERING YOUR FONT VALUES
ROLLING IN LINE-HEIGHT
UNITLESS LINE-HEIGHT VALUES
AVOID STYLE-LESS BORDER VALUES
CONTROLLING BORDER APPEARANCE WITH COLOR
SUPPRESSING ELEMENT DISPLAY
SUPPRESSING ELEMENT VISIBILITY
THROWING ELEMENTS OFF-SCREEN
IMAGE REPLACEMENT
PRINT STYLES
DEVELOPING PRINT STYLES
BLOCK-LEVEL LINKS
MARGIN OR PADDING?
OUTDENTING LISTS
BULLETING LISTS
BACKGROUND BULLETS
GENERATING BULLETS
YOU HAVE MORE CONTAINERS THAN YOU THINK
DOCUMENT BACKGROUNDS
SERVER-SPECIFIC CSS
4: LAYOUTS
OUTLINES INSTEAD OF BORDERS
CENTERING BLOCK BOXES
FLOAT CONTAINMENT: OVERFLOW
FLOAT CONTAINMENT: FLOATING
CLEARFIXING
ADJACENT CLEARING
TWO SIMPLE COLUMNS
THREE SIMPLE COLUMNS
FAUX COLUMNS
LIQUID BLEACH
THE ONE TRUE LAYOUT
THE HOLY GRAIL
FLUID GRIDS
EM-BASED LAYOUT
NEGATIVE MARGINS IN FLOW
POSITIONING WITHIN A CONTEXT
PUSHING OUT OF THE CONTAINING BLOCK
FIXED HEADERS AND FOOTERS
5: EFFECTS
COMPLEXSPIRAL
CSS POP-UPS
CSS MENUS
BOXPUNCHING
PRE-CSS 3 ROUNDED CORNERS
CSS 3 ROUNDED CORNERS
CSS SPRITES
SLIDING DOORS
CLIPPED SLIDING DOORS
CSS PARALLAX
RAGGED FLOATS
BETTER RAGGED FLOATS
BOXING YOUR IMAGES
CONSTRAINED IMAGES
Part III: CUTTING EDGE
6: TABLES
HEAD, BODY, FOOT
ROW HEADERS
COLUMN-ORIENTED STYLING
TABLE MAPPING
TABLE GRAPHS
7: THE (NEAR) FUTURE
STYLING HTML 5
CLASSING LIKE HTML 5
MEDIA QUERIES
STYLING OCCASIONAL CHILDREN
STYLING OCCASIONAL COLUMNS
RGB ALPHA COLOR
HSL AND HSL ALPHA COLOR
SHADOWY STYLES
MULTIPLE BACKGROUNDS
2D TRANSFORMS
Index
01_684160-ffirs.indd ii 01_684160-ffirs.indd ii 10/5/10 7:37 PM 10/5/10 7:37 PM
SMASHING CSS 01_684160-ffirs.indd i 01_684160-ffirs.indd i 10/5/10 7:37 PM 10/5/10 7:37 PM
01_684160-ffirs.indd ii 01_684160-ffirs.indd ii 10/5/10 7:37 PM 10/5/10 7:37 PM
SMASHING CSS PROFESSIONAL TECHNIQUES FOR MODERN LAYOUT Eric A. Meyer A John Wiley and Sons, Ltd, Publication 01_684160-ffirs.indd iii 01_684160-ffirs.indd iii 10/5/10 7:37 PM 10/5/10 7:37 PM
01_684160-ffirs.indd iv 01_684160-ffirs.indd iv 10/5/10 7:37 PM 10/5/10 7:37 PM
PUBLISHER’S ACKNOWLEDGMENTS Some of the people who helped bring this book to market include the following: Editorial and Production VP Consumer and Technology Publishing Director: Michelle Leete Associate Director- Book Content Management: Martin Tribe Associate Publisher: Chris Webb Publishing Assistant: Ellie Scott Project Editor: Brian Herrmann Copy Editor: Debbye Butler Editorial Manager: Jodi Jensen Sr. Project Editor: Sara Shlaer Editorial Assistant: Leslie Saxman Marketing Senior Marketing Manager: Louise Breinholt Marketing Executive: Kate Parrett Composition Services Compositor: Jennifer Mayberry Proofreader: Susan Hobbs Indexer: Potomac Indexing, LLC 01_684160-ffirs.indd v 01_684160-ffirs.indd v 10/5/10 7:37 PM 10/5/10 7:37 PM
Th is edition fi rst published 2011 © 2011 John Wiley & Sons, Ltd. Registered offi ce John Wiley & Sons Ltd, Th e Atrium, Southern Gate, Chichester, West Sussex, PO19 8SQ, United Kingdom For details of our global editorial offi ces, for customer services and for information about how to apply for permission to reuse the copyright material in this book please see our website at www.wiley.com. Th e right of the author to be identifi ed as the author of this work has been asserted in accordance with the Copyright, Designs and Patents Act 1988. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, except as permitted by the UK Copyright, Designs and Patents Act 1988, without the prior permission of the publisher. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Content reproduced from Meyerweb.com is copyright material and cannot be repro- duced without permission ©1995-2010 Eric A. and Kathryn S. Meyer. All Rights Reserved. ©1995-2010 Eric A. and Kathryn S. Meyer. All Rights Reserved. Designations used by companies to distinguish their products are oft en claimed as trademarks. All brand names and product names used in this book are trade names, service marks, trademarks or registered trademarks of their respective owners. Th e publisher is not associated with any product or vendor mentioned in this book. Th is publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold on the understanding that the publisher is not engaged in rendering professional services. If professional advice or other expert assistance is required, the services of a competent professional should be sought. 978-0-470-68416-0 Set in 10/12 Minion Pro Regular by Wiley Composition Services Printed in the US by CJK 01_684160-ffirs.indd vi 01_684160-ffirs.indd vi 10/5/10 7:37 PM 10/5/10 7:37 PM
分享到:
收藏