canvas 标签画登陆页鼠标滑过效果
如需js请留言。JS在个人博客日记中。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script src="../js/jquery-1.7.2.js"></script>
<script src="../js/ban.js"></script>
</head>
<style type="text/css">
.cavs{
z-index:1;
position: fixed;
right: 0;
bottom: 0;
}
.cavs{
width: 100%;
height: 950px;
background-image: url("../image/bg.jpg");
}
}
</style>
<body>
<div></div>
<canvas class="cavs"></canvas>
</body>
</html>
效果图: