Home > Web Front-end > HTML Tutorial > Please tell me how to write width percentage float_html/css_WEB-ITnose

Please tell me how to write width percentage float_html/css_WEB-ITnose

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

Please teach me how to write width percentage float


  • User details
  • User details
  • User details


How to make it compatible? Cannot side by side under IE6


Reply to discussion (solution)

<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


It’s useless, it’s still the same after adding *
User details User details User details
User details
Still can’t be side by side

IE’s margin is not counted
in width, so you need to set margin to 0, and set

where needed. When margin:0px is not added,

IE’s margin is not calculated in width In
, you need to set the margin to 0, and set

where needed. When not adding margin:0px,


I use EMEditor to edit the preview, in IE8 and Firefox But it’s okay...

It’s useless, even adding * is still the same
User details User details User details
User details
Still can’t side by side


Refresh

I really have to give up 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