윈도우 크기에 문제가 있습니다. 나는이Jquery windows.width (height) overflow with
var boxwidth = $(window).width();
var boxheight = $(window).height();
처럼 윈도우의 크기를 복용 한 후 canvas
var canvas: document.createElement("canvas"),
start: function() {
this.canvas.width = boxwidth;
this.canvas.height = boxheight;
this.context = this.canvas.getContext("2d");
document.body.insertBefore(this.canvas, document.body.childNodes[0]);
}
를 만들하지만 난 폭과 높이 오버 플로우를 가지고 있어요.
완벽하게 창 크기에 맞는 캔버스를 만들고 싶습니다. 지금, 나는 내가 이미 margin:0
및 padding:0
도움이 될 HTML 파일의 상단에 <!DOCTYPE html>
추가
있다 : 마지막 단계는 요소의 상태 (HTML 바디 등) 그래서
복원하는 지금은 오버플로없이 적합하도록 완벽한 가치를 찾았습니다. – yahoo5000