- 博客(2)
- 收藏
- 关注
原创 chart.js canvas 自定义大小
设置固定长宽可在外面套一层div<div style="height:200px;width300px;"> <canvas id="demo"></canvas></div>并在js中添加一下配置,否则会默认设置长宽1比2options: { // Boolean - whether or not the chart should be responsive and resize when the browser does.
2020-06-03 14:58:37 1352
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人