我需要在打开页面时调整图像大小。在ajax导航之前,我使用函数jQuery(window)
来说当我进入新页面时我想要调整函数的大小。但现在用ajax导航只需加载我的页面的一部分,所以jQuery(window)
什么都不返回。jQuery(窗口)Ajax导航
// start page KO PART
jQuery(window).load(function(){
redimensionnement();
});
// KO PART END
// resize window OK --
jQuery(window).resize(function(){
redimensionnement();
});
你有什么想法解决我的问题吗?
非常感谢!
你能不就叫'redimensionnement(;'在ajax回调? – Archer
ajax导航是什么意思?你使用从父窗口或其他东西控制的'iframe'吗? –