jquery .load() doesn't work after hard refresh

后端 未结 5 1698
梦如初夏
梦如初夏 2021-01-16 19:03

I have some code that when the page loads gets the height of an image and then resizes its container div accordingly. This works fine unless its the first time the page has

5条回答
  •  滥情空心
    2021-01-16 19:24

    You might want to try this instead:

    $(document).ready(function(){
    //code here
    });
    

提交回复
热议问题