Home >Web Front-end >HTML Tutorial >About IE6 floating problem! _html/css_WEB-ITnose
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>