大海 Online

css

display, position, float 之间的关系

从 css2.1 规范中翻译而来
出处见: http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo

Ps: 原文中的box未翻译, 可理解为盒模型, 或盒子

影响 产生box及布局的三个属性 - display, position, float 之间的关系如下:

specified value computed value
inline-table table
inline, table-row-group, table-column, table-column-group, table-header-group, table-footer-group, table-row, table-cell, table-caption, inline-block block
others same as specified