两个div如何并排一行具体该怎么实现

(编辑:jimmy 日期: 2024/11/1 浏览:2)


复制代码代码如下:
<style>
.box1 {width:70%; float:left; display:inline;}
.box2 {width:30%; float:left; display:inline;}
</style>
<div class="container">
<div class="box1">121212</div>
<div class="box2">455656</div>
</div>