1
There is the possibility to take the size via javascript of an external image to my directory?
For example in this use:
.divExterna{
background-image:url(http://www.backsite.com.br/datafiles/suite/escritorio/aplicativo/conteudo/album_fotografico/769.jpg),
height: seu_tamanho
}
I would like to take your size to apply as my div’s height.
then the point is that I work with mobiles, and I would like the div to have real size image, there would be no way I would rescue that value in any way?
– Marcos Henrique
@Henricão, not with javascript... You cannot navigate (as far as I know) the directories and see the contents, you can only see the size of an element that exists in the DOM. But this works in mobile also, the image so is the height that you set for div
– Miguel
I will try to apply this, thank you very much for the feedback
– Marcos Henrique
You’re welcome @Henricão
– Miguel