L
liketofindoutwhy
For Firefox, we can get the computed style of an Img element, using
the script in
http://www.quirksmode.org/dom/getstyles.html
so even if we set only the width of an Image in CSS, we will get both
the width and height of the final rendered image.
However, it won't work in IE 7.... the width will return the original
value, but the height is "NaN".... is there a way to get the final
rendered width and height of an image in both Firefox and IE?
the script in
http://www.quirksmode.org/dom/getstyles.html
so even if we set only the width of an Image in CSS, we will get both
the width and height of the final rendered image.
However, it won't work in IE 7.... the width will return the original
value, but the height is "NaN".... is there a way to get the final
rendered width and height of an image in both Firefox and IE?