본문 바로가기

html | javascript

html javascript - canvas size 화면에 꽉 채우기

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>canvas size</title>

  <style>
    canvas {
      background-color: beige;
    }
  </style>
</head>
<body style="margin: 0" onload="init()">
  <canvas></canvas>
  </script>
</body>
</html>