首先用一个大的div将要并列的div包裹在一起,然后为要并列的div标签指定style为left即可。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div>
<div style="float:left;">
<form method="post" action="/" enctype="multipart/form-data" method='POST'>
<input type="file" size="30" name="file"/>
<input type="submit" value="上传图像" class="button-new" style="margin-top:15px;"/>
</form>
<img src="data:image/png;base64, {{ plot_url }}" width="327" height="220" >
</div>
<div style="float:left;">
<form method="post" action="/" enctype="multipart/form-data" method='POST'>
<input type="file" size="30" name="file"/>
<input type="submit" value="上传图像" class="button-new" style="margin-top:15px;"/>
</form>
<img src="data:image/png;base64, {{ plot_url }}" width="327" height="220" >
</div>
</div>
</body>
</html>