When an element is floated, how do different display properties affect the layout? Or, what are the differences, if any, between these classes:
div.foo {
display: block;
float: left;
}
div.foo2 {
display: inline;
float: left;
}
div.foo3 {
display: inline-block;
float: left;
}
EDIT:
If there are no differences according to the spec, then do certain antiquated versions of browsers (ahem, IE) render them differently?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…