61,115
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title> 页面名称 </title>
<style type="text/css">
.test {
width: 120px;
height: 80px;
}
.test:hover img {
position: fixed;
left: 50%;
top: 50%;
margin-left: -60px;
margin-top: -40px;
transform:scale(10);
}
</style>
</head>
<body>
<div class="test">
<img src="1.jpg" width="120" height="80" border="0" alt="">
</div>
</body>
</html>