Good evening guys, I'm having a javascript problem that is as follows:
I need to create div dynamically in a for
and put these divs in an image, I could do this with the following code:
for(y = 0;y<z;y++){
passarImagem[y] = document.createElement("div");
var testando = document.createElement("img");
testando = "<img src=exemmplo.png>";
testando.width = 500;
testando.height = 500;
passarImagem[y].innerHTML = testando.src;
}
I need to scale these images to a specific size, I put 500 as an example, but this way I did not work, I would like to know if you have a way to change the size of this image.