1
내 웹 사이트의 정적, 테스트 버전은 여기 호스팅있어 :Firefox에서 어떻게 전체 화면으로 캔버스를 확장 할 수 있습니까?
http://alexgolec.staticloud.com/
하지만 난 파이어 폭스에서 그것을 불 때, 캔버스가 제대로 크기를 조정하지 않습니다. 나는 코드의 잘못된 라인 여기 생각 :
var _docHeight = (document.height !== undefined) ? document.height :
document.body.offsetHeight;
var _docWidth = (document.width !== undefined) ? document.width :
document.body.offsetWidth;
ctx.canvas.width = _docWidth;
ctx.canvas.height = _docHeight;
이 코드는 웹킷 브라우저에서 제대로 작동하지만 게코 그것에 발프 것으로 보인다.