Home >Web Front-end >HTML Tutorial >About IE6 floating problem! _html/css_WEB-ITnose

About IE6 floating problem! _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:39:151026browse

The following contents are personal notes: I welcome criticism and advice!

Under IE6, float should be used as little as possible. Instead, use display:inline and the parent layer uses text-align:text; the effect will be better;

If a group of floating elements If floating occurs, it is best to add a non-floating layer to the outer layer for a better effect:

<ul>    <li>1</li>    <li>1</li>    <li>1</li>    <li>1</li>    <span>22222</span></ul>

The above example li has a float effect but span does not have a float. Under IE6, span will have a floating effect! Solved Method:

<ul>    <div>    <li>1</li>    <li>1</li>    <li>1</li>    <li>1</li>    </div>    <span>22222</span></ul>

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