请教一下width 百分比float的写法_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:53
Original
1401 people have browsed it

请教一下width 百分比float的写法


  • 用户详情
  • 用户详情
  • 用户详情
  • 用户详情


请问如何兼容?在IE6下不能并排


回复讨论(解决方案)

<style>  *{margin:0px;padding:0px;}li{float:left;width:25%;}</style><div style="width:100%"><ul ><li>用户详情</li><li>用户详情</li><li>用户详情</li><li>用户详情</li></ul></div>
Copy after login
Copy after login

<style>  *{margin:0px;padding:0px;}li{float:left;width:25%;}</style><div style="width:100%"><ul ><li>用户详情</li><li>用户详情</li><li>用户详情</li><li>用户详情</li></ul></div>
Copy after login
Copy after login


没用,加了*也还是一样
用户详情 用户详情 用户详情
用户详情
还是不能并排

IE 的 margin 不计算在 width 中
所以需要先令 margin 为 0,在需要的地方再设置

不加 margin:0px 时

IE 的 margin 不计算在 width 中
所以需要先令 margin 为 0,在需要的地方再设置

不加 margin:0px 时


我用EMEditor编辑预览,在IE8和火狐中却没事……

没用,加了*也还是一样
用户详情 用户详情 用户详情
用户详情
还是不能并排


刷新下

真的得放弃IE6了!

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!