05-03-2013, 06:45 PM
tu peux le faire via jQuery (http://jquery.com/)
ou via JS
$('#id-de-ton-canvas').attr({
width: 100,
height: 100
});
ou via JS
var canvas = document.getElementById('id-de-ton-canvas');
canvas.width = 100;
canvas.height = 100;