1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| <!doctype html> <html>
<head> <meta charset="utf-8"> <title>烟花</title> <style> html, * { margin: 0; padding: 0 } body { background-image: url(qv1.jpg); background-size: 50% 50%; background-size: 100%; background-repeat: no-repeat; } .demo { margin: 0 auto; width: 100%; height: 100%; } h1 { margin: 175px auto 30px auto; text-align: center; font-family: 'Roboto'; } </style> </head>
<body> <div class="demo"> </div> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script> <script src="fireworks.js"></script> <script> $('.demo').fireworks({ sound: true, opacity: 0.8, width: '100%', height: '100%' }); </script>
</body>
</html>
|