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 ...}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.