<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jQuery动画</title>
<style type="text/css">
#msg{
border:2px solid #CCC;
width:80px;
height:20px;
line-height:20px;
text-align:center;
position:fixed;
bottom:10px;
right:10px;
background-color:pink;
display:none;
}
/*设置相对/绝对/固定定位才能做出动画效果,动画就是连续改变元素的偏移量*/
img{
position:relative;
}
#gg{
border:2px solid red