如题,解决方法有两个。
方法一:
<div> <div style="float: left;"></div> <div style="float: left;"></div> <div style="clear: both;"></div> </div>
方法二:
<div style="overflow: hidden;"> <div style="float: left;"></div> <div style="float: left;"></div> </div>
如题,解决方法有两个。
方法一:
<div> <div style="float: left;"></div> <div style="float: left;"></div> <div style="clear: both;"></div> </div>
方法二:
<div style="overflow: hidden;"> <div style="float: left;"></div> <div style="float: left;"></div> </div>