|
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>mjs</title>
- <script src="https://cdn.jsdelivr.net/npm/matter-js@0.17.1/build/matter.min.js"></script>
- <style>
- html, body {
- margin: 0;
- padding: 0;
- overflow: hidden;
- }
-
- body {
- height: 100vh;
- width: 100vw;
- }
-
- box {
- margin: 0px;
- padding: 0px;
- box-sizing: border-box;
- position: absolute;
- display: block;
- background-color: rgba(45, 188, 232, 0.687);
- transform-origin: 20px 20px;
- }
-
- </style>
- </head>
- <body>
- <script src="01.js"></script>
- </body>
- </html>
|