最近在看W3C文档时,看到这一条,觉得还是有点意思的。
原文地址:Relationships between ‘display’, ‘position’, and ‘float’”
- If ‘display’ has the value ‘none’, then ‘position’ and ‘float’ do not apply. In this case, the element generates no box.
- Otherwise, if ‘position’ has the value ‘absolute’ or ‘fixed’, the box is absolute[......]
