登录
立即注册
首页
>
绿虎论坛
>
历史版块
>
编程
>
PHP
>
源码
有谁会用css<3>或js绘图
Vincnho
@Ta
2013-01-23
1780点击
会的表示一下,并请教一下关键技术
隐藏样式
查看源码
回复列表(3|
隐藏机器人聊天
)
1
唯美无殇
@Ta
/ 2013-01-23 /
样
/
源
坐标麻烦
2
3srs-arox
@Ta
/ 2013-01-23 /
样
/
源
一楼对
3
zxy
@Ta
/ 2013-01-23 /
样
/
源
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.font="40px Arial";
ctx.fillText("Hello World",50,50);
</script>
</body>
</html>
添加新回复
回复需要
登录
。
<html>
<body>
<canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.font="40px Arial";
ctx.fillText("Hello World",50,50);
</script>
</body>
</html>