关于IE6浮动问题!_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:39:15
Original
965 people have browsed it

以下内容均为个人笔记:望批评指教!

 

IE6下应尽量少使用float 而是  换用display:inline  父层使用text-align:text;效果会好些;

如果一组浮动元素 产生了浮动 最好在外层加个非浮动层 效果会好些:

<ul>    <li>1</li>    <li>1</li>    <li>1</li>    <li>1</li>    <span>22222</span></ul>
Copy after login

以上例子li存在float效果 span没有float 在IE6下 span会产生浮动影响!解决办法:

<ul>    <div>    <li>1</li>    <li>1</li>    <li>1</li>    <li>1</li>    </div>    <span>22222</span></ul>
Copy after login

 

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!