📜  css画布设置纵横比 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:34.680000             🧑  作者: Mango

代码示例1
canvas.width = canvas.height * (canvas.clientWidth / canvas.clientHeight);