<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{
margin: 0;
}
.box{
width: 300px;
height: 70px;
background-color: pink;
margin: 0 auto;
padding: 5px;
}
.pic{
float: left;
width: 120px;
height: 60px;
margin-right: 5px;
}
.pic img{
width: 100%;
}
</style>
</head>
<body>
<div class="box">
<div class="pic">
<img src="img/llf.jpg" >
</div>
<p>总有一段旋律萦绕心间 总有一句歌词念念不忘</p>
</div>
</body>
</html>
文字环绕浮动元素的妙用
最新推荐文章于 2024-08-08 16:21:49 发布