canvas.font=value,设置无效?
发布于 6 年前 作者 qianyan 14486 次浏览 来自 官方Issues

ctx.setFontSize(‘12’)

ctx.setFillStyle("#fff")

ctx.font = ‘text-decoration:line-through normal 12px 宋体’;

ctx.fillText(‘¥8488’, 80, 280)  

ctx.font  为什么这个不起作用啊

2 回复

这个是不支持的

我 一定要 在 canvas 设置 里面的文字 text-decoration:line-through  一定要有这个样式

回到顶部