Get height of image inside a hidden div

前端 未结 9 579
自闭症患者
自闭症患者 2021-01-02 18:50

i want to to get the height/width of an image inside a hidden div-containter, but .height() and .width() both returns 0 (like expected).

         


        
9条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 18:53

    it looks like you need to compute the height & width of an image. if so, you're thinking of it too hard.

提交回复
热议问题