怎么把两个div一左一右放
1.代码
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Title</title>
</head>
<body>
<div style="width:150px;height:50px;margin:0;padding:0;"><div style="width:100px;height:50px;background-color:red;float:left;">1</div><div style="width:50px;height:50px;background-color:blue;float:left;">2</div><div style="clear:both;">3</div>
</div>
</body>
</html>