<canvas style="border: aqua solid 1px;" id='canvas' width='500' height='500'></canvas>
<script>
    var canvas = document.getElementById('canvas');
    context = canvas.getContext('2d');

    context.font = '38pt Arial'; //字体样式
    context.fillStyle = 'red'; //填充线样式
    context.strokeStyle='blue'; //轮廓线样式

    context.fillText("hellocav",100,100); //填充线
    context.strokeText("hellocav",100,100); //轮廓线
</script>

 

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2022-01-31
  • 2021-07-12
  • 2021-06-24
  • 2021-05-13
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案