<canvas id="c" style="border: solid 1px black; width: 300px; height: 300px;"></canvas>
<script type="text/javascript">
var canvas = document.getElementById("c"),
ctx = canvas.getContext("2d");
ctx.fillRect(0, 0, 50, 50);
</script>
フィドル:キャンバス の属性がhttp://jsfiddle.net/Fedor/xZGUj/3/
これをチェックして、それはあなたが私が推測する幅と高さを置く必要がありますすることができhttp://jsfiddle.net/wong2/xZGUj/
可能複製([キャンバス上のdrawImageは、Firefoxや他の問題で変なアスペクト比を有する] http://stackoverflow.com/questions/1931166/キャンバスに描かれた奇妙なアスペクト比のファイアウォールと他の問題) –