浏览代码

Support canvas scaling with window

- 7 年之前
父节点
当前提交
493a67e6d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/web_shell/shell.html

+ 1 - 1
templates/web_shell/shell.html

@@ -58,7 +58,7 @@
       div.emscripten_border { border: 1px solid black; }
       
       /* the canvas *must not* have any border or padding, or mouse coords will be wrong */
-      canvas.emscripten { border: 0px none; background: black; }
+      canvas.emscripten { border: 0px none; background: black; width: 100% }
       
       #emscripten_logo {
         display: inline-block;