以下是 仿嘻嘻哈哈右下角固定的二维码代码 的示例演示效果:
部分效果截图:
HTML代码(index.html):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="JS代码,悬浮漂浮,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为仿嘻嘻哈哈右下角固定的二维码代码,属于站长常用代码" />
<title>仿嘻嘻哈哈右下角固定的二维码代码</title>
<link href="css/lrtk.css" rel="stylesheet" type="text/css" />
</head>
<body style="height:3000px">
<!-- 代码 开始 -->
<div class="weixin">
<img src="images/wx-icon.png" width="40" height="40" />
<div class="xixi">
<img src="images/weixin.jpg" width="150" height="150" />
</div>
</div>
<!-- 代码 结束 -->
<div style="text-align:center;margin:50px 0">
<p style="margin:20px 0"></p>
</div>
</body>
</html>
CSS代码(lrtk.css):
/* ����ͼ�� �Ѽ����� www.lanrentuku.com */
.weixin{position:fixed;right:0;bottom:0}
.weixin .xixi{display:none}
.weixin:hover .xixi{position:absolute;display:block;right:50px;bottom:0;z-index:9}