Getting image width on image load fails on IE

后端 未结 8 1442
自闭症患者
自闭症患者 2020-12-31 09:32

I have a image resizer function that resize images proportional. On every image load a call this function with image and resize if its width or height is bigger than my max

8条回答
  •  臣服心动
    2020-12-31 10:30

    It's because IE can't calculate width and height of display: none images. Use visibility: hidden instead.

提交回复
热议问题