<!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,chrome=1" />
<title> 页面名称 </title>
<style type="text/css">
.fl {
float: left;
position: relative;
margin: 20px;
}
.fl > .inf {
position: absolute;
top: 100%;
left: 20px;
background-color: #ccc;
border: 1px solid #999;
display: none;
}
.fl:hover > .inf {
display: block;
}
</style>
</head>
<body>
<p class="fl"><span class="inf">图片信息1</span><img src="1.jpg" width="120" height="124" border="0" alt=""></p>
<p class="fl"><span class="inf">图片信息2</span><img src="2.jpg" width="120" height="124" border="0" alt=""></p>
</body>
</html>