HuyPV
Wednesday, April 25, 2012
var w = document.getElementById('my_img').width;
alert(w); // return 0
How to fix:
If image has style: display = none, change to: visibility = hidden
Title:
javascript - internet explorer get image width height return 0
Description:
var w = document.getElementById('my_img').width; alert(w); // return 0 How to fix: If image has style: display = none, change to...
...
Rating:
4