国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

???? ???? ????.

Context ??? fillText(string, x, y) ???? ???? ??? ? ?????. ?? ???? ? ?? ?? ??? ??? ??, x ?? ? ???? y ?????. ???? ?? ??? ???? ??, ??, ???? ???? ???(?? ????? CSS? ?? ??? ?????). ?? ???? ?? ? ??? ???? ? ???? ??????? ???? ????. ? ?? ?? ??: fillText ???? ??? ? ??? ???? ????. ?, ?? ???? ? ?? ?????. ??? ?? ?? ???? ????? fillText ???? ?? ?? ???? ???.

??? ??? ????:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>huatu</title>
<body>
<canvas id="demoCanvas" width="500" height="600"></canvas>
<script type="text/javascript">
    //通過id獲得當(dāng)前的Canvas對象
 var canvasDom = document.getElementById("demoCanvas");
    //通過Canvas Dom對象獲取Context的對象
 var context = canvasDom.getContext("2d");
    context.moveTo(200,200);
    // 設(shè)置字體
 context.font = "Bold 50px Arial";
    // 設(shè)置對齊方式
 context.textAlign = "left";
    // 設(shè)置填充顏色
 context.fillStyle = "#005600";
    // 設(shè)置字體內(nèi)容,以及在畫布上的位置
 context.fillText("PHP中文網(wǎng)!", 10, 50);
    // 繪制空心字
 context.strokeText("m.miracleart.cn!", 10, 100);
</script>
</body>
</html>


???? ??
||
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>huatu</title> <body> <canvas id="demoCanvas" width="500" height="600"></canvas> <script type="text/javascript"> //通過id獲得當(dāng)前的Canvas對象 var canvasDom = document.getElementById("demoCanvas"); //通過Canvas Dom對象獲取Context的對象 var context = canvasDom.getContext("2d"); context.moveTo(200,200); // 設(shè)置字體 context.font = "Bold 50px Arial"; // 設(shè)置對齊方式 context.textAlign = "left"; // 設(shè)置填充顏色 context.fillStyle = "#005600"; // 設(shè)置字體內(nèi)容,以及在畫布上的位置 context.fillText("PHP中文網(wǎng)!", 10, 50); // 繪制空心字 context.strokeText("m.miracleart.cn!", 10, 100); </script> </body> </html>