For centering horizontally we use ctx.textBaseline = 'middle'; ctx.textAlign = 'center'; . But to center vertically we need to use ctx.
確定! 回上一頁