HTML5¼¼Êõ

canvas»­²¼ÔÚÖ÷Á÷ä¯ÀÀÆ÷ÖеijߴçÏÞÖÆ - Êõ³æ

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2016-10-16 10:00 ÎÒÒªÆÀÂÛ( )

ͨ¹ý²âÊÔ·¢ÏÖ£¬canvasÔÚ²»Í¬ä¯ÀÀÆ÷ÏÂÃæÓв»Í¬µÄ×î´ó³ß´çÏÞÖÆ¡£ ´ó¼Ò¶¼ÖªµÀ£¬canvasÓÐ×ÔÉíµÄwidth,heightÊôÐÔÀ´¿ØÖƳߴ磬ÓÃcssµÄwidth,height,¿ØÖÆÏÔʾµÄ´ó

ͨ¹ý²âÊÔ·¢ÏÖ£¬canvasÔÚ²»Í¬ä¯ÀÀÆ÷ÏÂÃæÓв»Í¬µÄ×î´ó³ß´çÏÞÖÆ¡£

´ó¼Ò¶¼ÖªµÀ£¬canvasÓÐ×ÔÉíµÄwidth,heightÊôÐÔÀ´¿ØÖƳߴ磬ÓÃcssµÄwidth,height,¿ØÖÆÏÔʾµÄ´óС¡£¿ÉÒÔÀí½âΪcanvas¾ÍÊÇÒ»¸öimg,ÊôÐÔµÄwidth,height¾ÍÊÇÕâ¸öimgµÄԭͼÏñËØ´óС¡£µ«ÔÚ¸÷ä¯ÀÀÆ÷Ï£¬ÉèÖÃcanvas³ß´çʱ·¢ÏÖÓÐ×î´ó³ß´çÏÞÖÆ¡£²âÊÔÒ»ÏÂÓë´ó¼Ò·ÖÏí¡£

²âÊÔ´úÂë

); ctx.fillStyle; ctx.fillRect();

 

ÔÚIOS10Ï£¬×Ô´øä¯ÀÀÆ÷ºÍ΢ÐÅÏ£¬³¬¹ý4096*4096ÏñËØÔòÏÔʾ²»Á˺ìÉ«·½¿é£»

HUAWEI NXT-TL00ÊÖ»ú×Ô´øä¯ÀÀÆ÷ºÍUCä¯ÀÀÆ÷Ï£¬²»Äܳ¬¹ý8192*8192ÏñËØ£»

ÔÚPC,CHROMEä¯ÀÀÆ÷£¬360ä¯ÀÀÆ÷£¬²»Äܳ¬¹ý16384*16384ÏñËØ£»

¡¡¡¡Ëѹ·ä¯ÀÀÆ÷£¬Òª±È16384*16384ÉÔ΢СһЩ£»

¡¡¡¡firefox,×î´óÊýÔÚ11164*11164×óÓÒ£»

¡¡¡¡IE11¡¢EDGEä¯ÀÀÆ÷£¬Ã»ÕÒµ½¼«ÏÞ£¬Ö»²»¹ýÔ½´óµçÄÔÔ½ÂýÄÚ´æÏûºÄÑÏÖØ£»

 

´ÓÉÏÃæÒ²¿ÉÒÔ¿´³ö£¬ä¯ÀÀÆ÷ÄÚºËÓ°Ïì×ÅÕâ¸öÊý¡£ÊÖÍ·ÉÏûÓÐMAC£¬ÓÐÐËȤµÄÅóÓÑ¿ÉÒÔ°ïæ²âһϣ¬°ÑÊý¾Ý²¹ÉÏ¡£

ÒÔÉϲâÊÔ½á¹û£¬Ö»ÊǸù¾ÝÉÏÃæµÄ´úÂ룬Èç¹û²âÊÔ²»×¼È·£¬»òÕßÆäËüÔ­ÒòÇëÖ¸Õý¡£

¡¡

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

Ïà¹ØÎÄÕÂ
  • canvasʵÏֹιÎÀÖ - zhengqiu

    canvasʵÏֹιÎÀÖ - zhengqiu

    2016-10-16 11:00

  • ¡¾HTML5¡¿Canvas ʵÏÖ·Å´ó¾µÐ§¹û - zhangjk

    ¡¾HTML5¡¿Canvas ʵÏÖ·Å´ó¾µÐ§¹û - zhangjk

    2016-10-15 17:00

  • html5ѧϰ±Ê¼Ç6-- canvas - tuohaibei

    html5ѧϰ±Ê¼Ç6-- canvas - tuohaibei

    2016-10-15 16:00

  • ·â×° ÓÃcanvas»æÖÆÖ±Ïߵĺ¯Êý--ÃæÏò¶ÔÏó - !master

    ·â×° ÓÃcanvas»æÖÆÖ±Ïߵĺ¯Êý--ÃæÏò¶ÔÏó - !master

    2016-10-14 16:05

ÍøÓѵãÆÀ
õ