顯示屬性
自身屬性
文本屬性
display
list-style
position
float
clear
width
height
margin
padding
border
background
color
font
text-decoration
text-align
vertical-align
white-space
other text
content
去聽了牛人 dbaron 的一個Web Page Layout/Display in Mozilla 講座(via)。講的東西對我一個只會HTML, CSS和JavaScript的人來說很底層,所以效果也比較“和諧”,只是大致了解了mozilla的CSS渲染源碼分布位置和渲染流程而已。講座提到了reflow(如何翻譯呢?又是一個問題)這個東東。之前對reflow有所聞,能經常從某些大牛的幻燈中提到,提高頁面渲染的性能,需盡量避免reflow。那麽reflow是什麼東西呢?它又是如何影響頁面性能的?事後去問了一下dbaron(呵呵,我口語徹底不行,加上心理素質,最後是把問題寫下來給他看),豁然開朗也。在CSS規範中有一個渲染對象的概念,通常用一個盒子(box,rectangle)來表示。mozi...
譯文出處:http://panweizeng.com/archives/57英文原文中譯As you might have understood by now I’m very much pro web standards. The current widely accepted standards are: (X)HTML for page structure, CSS for design, and Javascript for behaviour. HTML is pretty well known by now, it has been there since the beginning of the web and there are tutorials everywhere that gets you started. CSS is starting to get a grip, large companies are switching their sites to CSS based layouts and the webdev blogosphere reaches more and more people.When you promote web standards, like many of us do, you get to talk to a lot of people. If you promote it in a live chat room like #CSS on EFNet it gets even clearer: there are a lot of different levels of CSS knowledge out ther...