整理完了《高性能JavaScript》這本書,往下就須要快速處理《CSS世界》,這本講解CSS特性的書很是值得一讀,內容完整,重點突出,實戰性強,就是語言囉嗦。因爲全書內容太多,並且須要一點一點的整理,因此放到了站點上,方便你們查看。git
站點地址: 全棧開發
原文連接: CSS世界,豆瓣讀書: CSS世界
table
塊級元素github
list-item
元素會出現項目符號display: inline-table;
的盒子是怎樣組成的width/height
做用在哪一個盒子上width/height
做用的具體細節佈局
width:auto
width
值做用的細節width/height
做用細節的box-sizing
height:auto
height:100%
min-width/max-width
和min-height/max-height
性能
min-width/max-width
!important
,超越最大內聯元素字體
深刻理解content
動畫
content
與替換元素content
內容生成技術溫和的padding
屬性spa
padding
與元素的尺寸padding
的百分比值padding
padding
與圖形繪製激進的margin
屬性code
margin
與元素尺寸以及相關佈局margin
的百分比值margin
合併margin:auto
margin
無效情形解析功勳卓著的border
屬性orm
border-width
不支持百分比值border-style
類型border-color
和color
border
與透明邊框技巧border
與圖形構建border
等高佈局技術字母x
ip
x
與CSS世界的基線x
與CSS中的x-height
x
與CSS中的ex
內聯元素的基石line-height
line-height
line-height
可讓內聯元素「垂直居中」line-height
的各種屬性值line-height
的「大值特性」line-height
的好朋友vertical-align
vertical-align
家族基本認識vertical-align
做用前提vertical-align
和line-height
之間的關係vertical-align
線性類屬性值vertical-align
文本類屬性值vertical-align
線性類屬性值上標下標類屬性值vertical-align
vertical-align
屬性的水平垂直居中彈框魔鬼屬性float
float
的本質與特性float
的做用機制float
更深刻的做用機制float
與流體佈局float
的自然剋星clear
clear
屬性clear
CSS世界的結界——BFC
最佳結界overflow
overflow
裁剪界線border box
overflow-x
和overflow-y
overflow
與滾動條overflow
的樣式表現overflow
與錨點定位float
的兄弟position:absolute
絕對定位
absolute
的包含塊absolute
絕對定位absolute
與text-align
absolute
與overflow
absolute
與clip
clip
屬性clip
的渲染absolute
的流體特性
absolute
遇到left/top/right/bottom
屬性absolute
的流體特性absolute
的margin:auto
居中position:relative
纔是大哥
relative
對absolute
的限制relative
與定位relative
的最小化影響原則強悍的position:fixed
固定定位
position:fixed
不同的「包含塊」position:fixed
的absolute
模擬position:fixed
與背景鎖定z-index
深刻了解層疊上下文
z-index
負值深刻理解z-index
準則line-height
的另外一個朋友font-size
font-size
和vertical-align
的隱祕故事font-size
與ex
、em
和rem
的關係font-size
的關鍵字屬性值font-size:0
與文本的隱藏字體屬性家族font-family
字體家族其餘成員
font-weight
font-style
font-variant
font
屬性
font
屬性font
屬性font
關鍵字屬性值的應用價值@font face
規則
@font face
的本質是變量@font face
與字體圖標技術文本的控制
text-indent
與內聯元素縮進letter-spacing
與字符間距word-spacing
與單詞間距word-break
和word-wrap
的區別white-space
與換行和空格的控制text-align
與元素對齊text-decoration
下劃線和文本重疊的問題text-transform
字符大小寫瞭解:first-letter/:first-line
僞元素
:first-letter
僞元素及其實例:first-line
僞元素color
transparent
關鍵字currentColor
變量rgba
顏色和hsla
顏色background
background-image
到底加不加載background-position
百分比計算方式background-repeat
與渲染性能background-attachment:fixed
background-color
背景色永遠是最低的rgba
背景色的兼容處理display
與元素的顯示/隱藏visibility
與元素的顯示/隱藏
visibility:collapse
和border
形似的outline
屬性
outline:0 none
outline
及其應用光標屬性cursor
cursor
屬性值改變水平流向的direction
direction
簡介direction
的黃金搭檔unicode-bidi
writing-mode
writing-mode
原來的做用writing-mode
改變了哪些規則writing-mode
和direction
的關係