<!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>Document</title>
<style>
.container{
background:#ccc;
}
.container img{
float:left;
width:300px
}
.bfc{
overflow:hidden;
}
</style>
</head>
<body>
<h1>理解BFC</h1>
<div class="container bfc">
<img src="./image/topBorder.PNG" />
<p class="bfc">这次一定</p>
</div>
</body>
</html>