<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <canvas id="bubble"></canvas> <script type="text/javascript"> var canvas = document.getElementById('bubble'); var w = window.innerWidth; var h = window.innerHeight canvas.width=w; canvas.height=h; window.onresize=function(){ w = window.innerWidth; h = window.innerHeight canvas.width=w; canvas.height=h; } var canCon=canvas.getContext('2d'); // var y=100,x=100; // setInterval(function(){ // canCon.clearRect(0,0,w,h); // canCon.beginPath(); //
canvas 悬浮效果
最新推荐文章于 2022-05-09 16:43:38 发布