jQuery (or something) is not working properly on I

2019-06-14 07:56发布

UPDATE:

I was told to test this in IE9 - It works fine in IE9 (for me, anyways).

I was told by a friend that THIS page is not running properly on IE8 - I was told that the thumbnails are loading properly, but the image in the center is not. I do not have IE8 and I have been unsuccessful in my attempt to download it.

The images are being loaded (well, adjusted) through jQuery and I have a feeling that it is my javascript code that is failing in some way, causing the described errors in IE8.

I put my code through JSLint and the errors I saw were telling me to add spaces in the code - but I highly doubt this could be causing the IE8 issue.

The JS file being loaded is "slideshow.js" which can be easily found through Chrome's inspect element.

I will keep inspecting this from my end looking for JS errors and what not but I would really appreciate some help on this issue.

Thank you very much,

Evan

2条回答
在下西门庆
2楼-- · 2019-06-14 08:13

Problem looks to be

.img-wrapper in style.css with position:absolute.

查看更多
Rolldiameter
3楼-- · 2019-06-14 08:23

The problem was that IE8 does not support the "naturalWidth" property. Rather, one should create a new image object, and get the "width" from this new image object.

For more details, refer to this link..

查看更多
登录 后发表回答