块元素独占一行,当一个大盒子(有固定尺寸)里面装2个小盒子,如果大盒子装不下,后面的盒子会出来大盒子
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ceshi</title>
<style>
.box3 {
width: 500px;
height: 500px;
background-color: brown;
}
</style>
</head>
<body>
<img src="images/logo.png" alt="">
<input type="text">
<em>sgaghgsthsth</em>
<div class="box3">box3</div>
</body>
</html>