Home >Web Front-end >HTML Tutorial >Please tell me how to write width percentage float_html/css_WEB-ITnose
Please teach me how to write width percentage float
c9ccee2e6ea535a969eb3f532ad9fe89
li{float:left;width:25%;}
531ac245ce3e4fe3d50054a55f265927
2ed3b7ad17e0e88bccd767f7bd0f655d
818516a2aea8c5412fd444e4ed52d34a25edfb22a4f469ecb59f1190150159c6User detailsbed06894275b65c1ab86501b08a632eb25edfb22a4f469ecb59f1190150159c6User detailsbed06894275b65c1ab86501b08a632eb25edfb22a4f469ecb59f1190150159c6User detailsbed06894275b65c1ab86501b08a632eb
<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>
<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>
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,
It’s useless, even adding * is still the same
User details User details User details
User details
Still can’t side by side
I really have to give up IE6!