HTML canvas系列-绘制空心文本(7) 1、方法 2、属性 3、示例 -绘制文本 1、方法 strokeText(text,x,y) 参数 说明 text 文本 x 开始的x坐标 y 开始的y坐标 2、属性 font 字体 “bold 40px 宋体”; 样式有 normal, italic, or bold,默认是normal lineWidth 线框 strokeStyle字体颜色 3、示例 -绘制文本 <!DOCTYPE html> <html>