0
我在此處有代碼顯示水平方向的星期幾。我怎樣才能使它在水平方向上顯示在的循環中,同時也考慮到了畫布的大小? (畫布在這種情況下,大小爲600)HTML5 Canvas循環中的文本
canvasObj1 = document.getElementById('myCanvas1');
context = canvasObj1.getContext('2d');
context.fillStyle = "#5D6C7B";
context.font = "12px sans-serif";
context.fillText("Monday", 10, 225);
context.fillText("Tuesday", 70, 225);
context.fillText("Wednesday", 130, 225);
context.fillText("Thursday", 210, 225);
context.fillText("Friday", 275, 225);
context.fillText("Saturday", 330, 225);
context.fillText("Sunday", 400, 225);
你是什麼意思的「在for循環」 - 動畫?請描述你需要更好的:) – markE