flex canvas

This commit is contained in:
Alexander Popov 2021-07-21 18:48:18 +03:00
parent 0d8f19e284
commit c8e94b42a2
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
1 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,18 @@
<head>
<meta charset="utf-8">
<title>jsKeyPressed</title>
<style type="text/css">
html { height: 100%; }
body {
height: 100%;
padding: 0; margin: 0;
display: flex;
align-items: center;
justify-content: center;
}
</style>
</head>
<body>
<canvas id="app" width="320" height="240">