Google Chrome で全画面キャンバスを作ろうとしています。
<style>
#canvas:-webkit-full-screen {
height:100%;
width: 100%;
}
</style>
<button onclick="fullScreen()">Full Screen</button>
<canvas id="canvas"></canvas>
<script>
function fullScreen() {
var c = document.getElementById("canvas");
c.webkitRequestFullScreen();
}
</script>
このコードはキャンバスを全画面表示にしますが、高さだけが全画面表示になります。