Heim >Web-Frontend >HTML-Tutorial >关于网页的添加Logo问题_html/css_WEB-ITnose
初学HTML和CSS还有JS
从网上下载的雨滴背景特效代码,想要自己改一改,在正中添加一个Logo,但百试而不得成,请教了=。=
我知道我很蠢。
下面是雨滴代码
<html> <head> <title>逼真全屏雨滴插件rainyday</title> <style media="screen" type="text/css"> img { display: none; } body { overflow: hidden; } #canvas { position: absolute; top: 0px; left: 0px; } </style> <script src="rainyday.js" type="text/javascript"></script> <script type="text/javascript"> function demo() { var engine = new RainyDay('canvas','demo1', window.innerWidth, window.innerHeight); engine.gravity = engine.GRAVITY_NON_LINEAR; engine.trail = engine.TRAIL_DROPS; engine.rain([ engine.preset(0, 2, 500) ]); engine.rain([ engine.preset(3, 3, 0.88), engine.preset(5, 5, 0.9), engine.preset(6, 2, 1), ], 100); } </script> </head> <body onload="demo();"> <img id="demo1" src="data:image/jpeg;base64/ alt="关于网页的添加Logo问题_html/css_WEB-ITnose" > <div id="cholder"> <canvas id="canvas"></canvas> </div> </body></html>
是不是因为是demo的原因不能添加?
用定位压上去!
用定位压上去!
等会试试=。=
用定位压上去!
虽然好像不行。但是自己解决了^.^