How to implement Display:inline-block of IE block elements

Source: Internet
Author: User
Keywords Web page production CSS Tutorials
Tags block classic display how to how to implement objects question set

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 ...}

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.