HTML5¼¼Êõ

canvasÒ»ÖÜÒ»Á· -- canvas»æÖÆ°ÂÔËÎå»·£¨1£© - ÕŲ»¶ª

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-07-17 16:02 ÎÒÒªÆÀÂÛ( )

ÔËÐÐЧ¹û£º !DOCTYPE htmlhtmlhead/headbodycanvas id=width=height=A drawing of someing!/canvasscript type= ); if (drawing.getContext) { context = drawing.getContext( );context.lineWidth = 7 ;context.strokeStyle = ;context.beginPath();context

ÔËÐÐЧ¹û£º

<!DOCTYPE html> <html> <head> </head> <body> <canvas id=width=height=>A drawing of someing!</canvas> <script type=> ); if(drawing.getContext) { context = drawing.getContext(); context.lineWidth = 7; context.strokeStyle = ; context.beginPath(); context.arc(70, 70, 40, 0, 2*Math.PI, false); context.stroke(); context.strokeStyle = ; context.beginPath(); context.arc(160, 70, 40, 0, 2*Math.PI, false); context.stroke(); context.strokeStyle = ; context.beginPath(); context.arc(250, 70, 40, 0, 2*Math.PI, false); context.stroke(); context.strokeStyle = ; context.beginPath(); context.arc(115, 110, 40, 0, 2*Math.PI, false); context.stroke(); context.strokeStyle = ; context.beginPath(); context.arc(205, 110, 40, 0, 2*Math.PI, false); context.stroke(); //»·»·Ïà¿Û£¬»­»¡£¨ÊµÏÖÏà¹ØÔ²»¡µÄ¸²¸Ç£© context.strokeStyle = ; context.beginPath(); context.arc(70, 70, 40, 1.9*Math.PI, 2.1*Math.PI, false); context.stroke(); context.strokeStyle = ; context.beginPath(); context.arc(160, 70, 40, 1.9*Math.PI, 2.1*Math.PI, false); context.stroke(); context.beginPath(); context.arc(160, 70, 40, 0.5*Math.PI, 0.7*Math.PI, false); context.stroke(); context.strokeStyle = ; context.beginPath(); context.arc(250, 70, 40, 0.5*Math.PI, 0.7*Math.PI, false); context.stroke(); } </script> </body> </html>

 

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • canvasÒ»ÖÜÒ»Á· -- canvas»ù´¡Ñ§Ï° - ÕŲ»¶ª

    canvasÒ»ÖÜÒ»Á· -- canvas»ù´¡Ñ§Ï° - ÕŲ»¶ª

    2017-07-15 12:00

  • canvasѧϰ×ܽáÎ壺Ï߶εĶ˵ãÓëÁ¬½Óµã - beevesnoodles

    canvasѧϰ×ܽáÎ壺Ï߶εĶ˵ãÓëÁ¬½Óµã - beevesnoodles

    2017-07-05 09:00

  • canvas»æ»­»ù´¡(Ò»)£ºÈÏʶcanvas»­²¼ - yangtoude

    canvas»æ»­»ù´¡(Ò»)£ºÈÏʶcanvas»­²¼ - yangtoude

    2017-07-01 15:02

  • HTML5 canvasѧϰСÀý´úÂë - ·çÓêºó¼û²Êºç

    HTML5 canvasѧϰСÀý´úÂë - ·çÓêºó¼û²Êºç

    2017-07-01 08:01

ÍøÓѵãÆÀ
¼