<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>文字环绕</title>
<style>
body,div,p {
margin: 0;
padding: 0;
}
.box {
width: 400px;
margin: 0 auto;
overflow: hidden;
}
.p1 {
float: left;
width: 100px;
height: 76px;
margin-right: 10px;
background-color: skyblue;
}
.p1 img {
width: 100%;
display: block;
}
.p2 {
width: 400px;
background-color: yellowgreen;
}
.p3 {
float: right;
width: 100px;
height: 76px;
background: #00a708;
}
.p3 img {
width: 100%;
display: block;
}
</style>
</head>
<body>
<div class="box">
<p class="p1">
<!-- <img src="https://static.www.tencent.com/uploads/2019/11/10/82924cc0132af1f1e6abd1ae39f73f2c.jpg" alt="">-->
</p>
<p class="p3"></p>
<p class="p2">文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕文字内容环绕</p>
</div>
</body>
</html>
文字环绕图片
于 2024-05-16 16:20:30 首次发布