Extend a question: how does ie block element achieve display:inline-block effect?
There are two ways:
1, first use the Display:inline-block attribute to trigger block elements, and then define the Display:inline, so that the block element presented as an inline object (two display to be placed in two CSS tutorial in the declaration has the effect, which is a classic IE bug, If Display:inline-block is defined first and then the display is set back to inline or block,layout does not disappear).
The code is as follows (...) For omitted other attribute content, Firefox is not good to use):
Div{display:inline-block ...}
Div{display:inline;
2, directly let block elements set to inline object Submission (set property display:inline), and then trigger block elements of the layout (such as: Zoom:1, Firefox is not good).
The code is as follows:
Div{display:inline;zoom:1 ...}