Home > Web Front-end > H5 Tutorial > Analysis of drawImage usage in HTML5_html5 tutorial skills

Analysis of drawImage usage in HTML5_html5 tutorial skills

WBOY
Release: 2016-05-16 15:47:10
Original
1796 people have browsed it

This article analyzes the problems and solutions encountered when using drawImage in HTML5. Share it with everyone for your reference. The specific analysis is as follows:

Problems encountered when using Image:

Copy code
The code is as follows:
< !DOCTYPE html>




< script src="js/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8">



The browser does not support

< ;/body>

Actually, this way of writing is wrong. In fact, as long as the image is refreshed, it will not be displayed. To ensure normal display after refresh, it needs to be redrawn when Image onload. Test the problems that will occur under chrome 19.

Solution

Copy code
The code is as follows:









The browser does not support


I hope this article will be helpful to everyone’s HTML5 programming design.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template