jQuery (or something) is not working properly on IE8

别来无恙 提交于 2019-12-08 12:37:02

问题


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


回答1:


Problem looks to be

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




回答2:


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..



来源:https://stackoverflow.com/questions/10238040/jquery-or-something-is-not-working-properly-on-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!