答案 0 :(得分:0)
您可以尝试使用画布:
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.strokeStyle = '#ff0000';
ctx.beginPath();
ctx.moveTo(20, 20);
ctx.lineTo(100, 20);
ctx.bezierCurveTo(105, 30, 110, 30, 115, 20);
ctx.lineTo(150, 20);
ctx.stroke();
示例代码:https://www.w3schools.com/code/tryit.asp?filename=FW7CGRNXNTWQ