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
1774 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:






Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template