复制粘贴下边代码,根据需要更换图片路径,以及css。
<html>
<head>
<style>
body {
text-align:center;
}
.weixin {
position: relative;
}
.weixin img.qrcode {
position: absolute;
z-index: 99;
width: 7.5rem;
max-width: none;
height: 7.5rem;
transform: scale(0);
transform-origin: top center;
opacity: 0;
border: .3125rem solid #0085ba;
border-radius: .25rem;
-webkit-transition: all .4s ease-in-out;
-o-transition: all .4s ease-in-out;
transition: all .4s ease-in-out;
margin-top: 80px;
margin-left: -25px;
}
.weixin:hover img.qrcode {
transform: scale(1);
opacity: 1;
}
</style>
</head>
<body>
<a class="social weixin" href="javascript:">
<img class="qrcode" src="http://www