Home >Web Front-end >HTML Tutorial >What are the disadvantages of display:inline-block_html/css_WEB-ITnose

What are the disadvantages of display:inline-block_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:511220browse

As mentioned, what are the disadvantages of using this attribute? Thank you everyone


Reply to the discussion (solution)

The disadvantage is that IE6 does not support it.

Take a look at the next CSS document. The essence of this version includes

The disadvantage is that IE6 does not support it.

Compatibility issues

You can do this
div{ display:inline-block; background:#000; width:100px;height:100px}
div{_display:inline; }

1111
2222

Each attribute value is useful, it just depends on whether you use it appropriately; There is no absolute so-called disadvantage. As for the compatibility issue, it is a bit of a disadvantage and can be solved completely through hacks. Overall, I think this attribute value is very useful.

By the way, the compatibility method on floor 4 is not correct enough. The correct method is: display:inline-block;*display:inline;*zoom:1

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn