标签:效果 lan stroke element 文本 code loading info 全民
<canvas id="myCanvas" width="300" height="100"></canvas>
// canvas绘制空心文本
var canvas = document.getElementById(‘myCanvas‘);
var ctx = canvas.getContext(‘2d‘);
ctx.font = ‘italic bold 65px 宋体‘;
ctx.lineWidth = 2;
ctx.strokeStyle = ‘#f91a15‘;
ctx.strokeText(‘全民战役‘, 10, 70);
标签:效果 lan stroke element 文本 code loading info 全民
原文地址:https://www.cnblogs.com/hellocd/p/14255150.html