層疊樣式表(CSS)能讓你內(nèi)心的設(shè)計思想迸發(fā)出來并得以實現(xiàn)。不過,將CSS與網(wǎng)站底層的HTML頁面進(jìn)行整合是一件非常困難的工作,有時甚至復(fù)雜得令人沮喪——這導(dǎo)致多數(shù)Web設(shè)計者不得不放棄一些奇思妙想?!禖SS: The Missing Manual》可以消除Web設(shè)計工作的痛苦,并且?guī)Ыo你:HTML——重新入門。如果你是HTML新手,你會學(xué)到如何以CSS友好的方式進(jìn)行基本頁面構(gòu)造。若你是HTML高手,你將學(xué)會如何像CSS設(shè)計者那樣思考。鮮活實例。100多頁頗具實用價值的教程幫助你循序漸進(jìn)地學(xué)習(xí)。你馬上就可以實踐所學(xué)到的概念。設(shè)計導(dǎo)引。超越CSS基礎(chǔ),發(fā)現(xiàn)專業(yè)人員最為實用和最具視覺沖擊力的頁面布局技巧。真實世界的CSS。本書向你展示如何調(diào)試你的CSS,以兼容任何瀏覽器——包括Internet Explorer 7。
作者簡介
David Sawyer McFarland 自1995年開始從事Web網(wǎng)站設(shè)計至今。他是暢銷書《Dreamweaver 8: The Missing Manual》的作者,并且是知名的Dreamweaver教師。他在加州大學(xué)伯克利分校和伯克利多媒體研究中心擔(dān)任網(wǎng)站管理員,參與過多個著名網(wǎng)站的架構(gòu)、設(shè)計、編程等。
圖書目錄
The Missing Credits. Introduction Part One: CSS Basics Chapter 1: Rethinking HTML for CSS HTML: Past and Present HTML Past: Whatever Looked Good HTML Present: Scaffolding for CSS Writing HTML for CSS Think Structure Two New HTML Tags to Learn HTML to Forget Tips to Guide Your Way The Importance of the Doctype Chapter 2: Creating Styles and Style Sheets Anatomy of a Style Understanding Style Sheets Internal or External-How to Choose Internal Style Sheets External Style Sheets Linking a Style Sheet Using HTML Linking a Style Sheet Using CSS Tutorial: Creating Your First Styles Creating an Inline Style Creating an Internal Style Sheet Creating an External Style Sheet Chapter 3: Selector Basics: Identifying What to Style Tag Selectors: Page-Wide Styling Class Selectors: Pinpoint Control ID Seledors: Specific Page Elements Styling Tags Within Tags The HTML Family Tree Building Descendent Seledors Styling Groups of Tags Constructing Group Selectors The Universal Seledor (Asterisk) Pseudo-Classes and Pseudo-Elements Styles for Links More Pseudo-Classes and -Elements Advanced Seledors Child Selectors Adjacent Siblings Altribute Selectors Tutorial: Selector Sampler Creating a Group Selector Creating and Applying a Class Selector Creating and Applying an ID Seledor Creating a Descendent Selector Chapter 4: Saving Time with Inheritance What Is Inheritance? How Inheritance Streamlines Style Sheets The Limits of Inheritance Tutorial: Inheritance A Basic Example: One Level of Inheritance Using Inheritance to Resle an Entire Page Inheritance Inaction Chapter 5: Managing Multiple Styles: The Cascade How Styles Cascade Inherited Styles Accumulate Nearest Ancestor Wins The Directly Applied Style Wins One Tag, Many Styles Specificity: Which Style Wins The Tiebreaker: Last Style Wins …… Part Two: Applied CSS Chapter 6: Formatting Text Chapter 7: Margins, Padding, and Borders Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your Site's Navigation Chapter 10: Formatting Tables and Forms Part Three: CSS Page Layout Chapter 11: Building Float-Based Layouts Chapter 12: Positioning Elements on a Web Page Part Four: Advanced CSS Chapter 13: CSS for the Printed Page Chapter 14: Improving Your CSS Habits Part Five: Appendixes Appendix A: CSS Property Reference Appendix B: CSS in Dreamweaver 8 Appendix C: CSS Resources Index