Positioning in CSS: Layout Enhancements for the Web
暫譯: CSS 定位:網頁佈局增強技術

Eric A. Meyer

  • 出版商: O'Reilly
  • 出版日期: 2016-05-24
  • 售價: $620
  • 貴賓價: 9.5$589
  • 語言: 英文
  • 頁數: 50
  • 裝訂: Paperback
  • ISBN: 1491930373
  • ISBN-13: 9781491930373
  • 相關分類: CSS
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

The Grid Layout spec will soon change your approach to website design, but there will still be plenty of uses for CSS positioning tricks. Whether you want to create sidebars that remain in the viewport (browser window), add sticky section headings to lists or long articles, or overlap one element with another, this concise ebook will expertly guide you through all the main CSS positioning types.

Short and deep, this book is an excerpt from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Positioning in CSS, you’ll receive a discount on the entire Definitive Guide once it’s released. Why wait? Make your web pages come alive today.

You'll learn how to:

  • Remove an element from a document but keep its new position part of the document’s flow with absolute positioning
  • Keep an element like a masthead or sidebar in one fixed position in the viewport with fixed positioning
  • Preserve an element’s shape and the space it occupied in the document with relative positioning
  • Make a document’s headers selectively stay still in response to scrolling conditions with sticky positioning

Eric A. Meyer is an author, speaker, blogger, sometime teacher, and co-founder of An Event Apart. He’s a two-decade veteran of the Web and web standards, a past member of the W3C’s Cascading Style Sheets Working Group, and the author of O’Reilly’s CSS: The Definitive Guide.

商品描述(中文翻譯)

網格佈局規範將很快改變您對網站設計的方式,但 CSS 定位技巧仍然有很多用途。無論您想要創建在視口(瀏覽器窗口)中保持的側邊欄、為列表或長文章添加粘性標題,還是將一個元素與另一個元素重疊,這本簡明的電子書將專業地指導您了解所有主要的 CSS 定位類型。

這本書短小精悍,摘錄自即將推出的《CSS: The Definitive Guide》第四版。當您購買《Positioning in CSS》的印刷版或電子書版時,您將在《Definitive Guide》發布後獲得整本書的折扣。為什麼要等呢?今天就讓您的網頁活起來吧。

您將學會如何:
- 使用 **absolute positioning** 將一個元素從文檔中移除,但保持其新位置成為文檔流的一部分
- 使用 **fixed positioning** 將像標題或側邊欄的元素固定在視口中的一個位置
- 使用 **relative positioning** 保持元素的形狀及其在文檔中佔據的空間
- 使用 **sticky positioning** 使文檔的標題根據滾動條件選擇性地保持靜止

Eric A. Meyer 是一位作者、演講者、部落客、偶爾的教師,以及 An Event Apart 的共同創辦人。他是網路和網頁標準的二十年老將,曾是 W3C 的層疊樣式表工作組成員,也是 O’Reilly 出版的《CSS: The Definitive Guide》的作者。