html5元素跟随鼠标,js元素跟随鼠标移动

#div1 {

width:50px;

height:50px;

background:skyblue;

border-radius:50%;

position:fixed;

left:200px;

top:400px;

}

#div2 {

width:45px;

height:45px;

background:skyblue;

border-radius:50%;

position:fixed;

left:210px;

top:390px;

}

#div3 {

width:42px;

height:42px;

background:skyblue;

border-radius:50%;

position:fixed;

left:230px;

top:370px

}

#div4 {

width:38px;

height:38px;

background:skyblue;

border-radius:50%;

position:fixed;

left:250px;

top:350px;

}

#div5 {

width:35px;

height:35px;

background:skyblue;

border-radius:50%;

position:fixed;

left:270px;

top:330px;

}

#div6 {

width:30px;

height:30px;

background:skyblue;

border-radius:50%;

position:fixed;

left:290px;

top:310px;

}

#div7 {

width:20px;

height:20px;

background:skyblue;

border-radius:50%;

position:fixed;

left:310px;

top:295px;

}

#div8 {

width:15px;

height:15px;

background:skyblue;

border-radius:50%;

position:fixed;

left:330px;

top:285px;

}

#div9 {

width:13px;

height:13px;

background:skyblue;

border-radius:50%;

position:fixed;

left:340px;

top:275px;

}

#div10 {

width:12px;

height:12px;

background:skyblue;

border-radius:50%;

position:fixed;

left:350px;

top:265px;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值