js代码
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/imagedrawer.js"></script> <script type="text/javascript"> $(document).ready(function() { $('div#container').drawImage({ pencil: { marginLeft: -15, marginTop : -40, height : '50px', width : '50px', src : './img/pencil.png' } }); }); </script>