
css如何让浮动的div居中对齐
<body><divstyle="margin:0pxauto;float:left"><divstyle="float:left">aaa</div><divstyle...
<body>
<div style="margin:0px auto; float:left">
<div style="float:left">aaa</div>
<div style="float:left">bbb</div>
<div style="float:left">ccc</div>
<div style="float:left">ddd</div>
</div>
</body> 展开
<div style="margin:0px auto; float:left">
<div style="float:left">aaa</div>
<div style="float:left">bbb</div>
<div style="float:left">ccc</div>
<div style="float:left">ddd</div>
</div>
</body> 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询