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

About IE6 floating problem! _html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 11:39:15
Original
1067 people have browsed it

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>
Copy after login

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>
Copy after login

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template