浏览器窗口大小变化时使用resize事件对框架不起作用的解决办法,如下:
$(window).resize(function(){
var surH = $(window).height();
$(".pic_conent").height(surH);
}
当浏览器变化,拉大拉小时,没有反应;
方法一:在标签上加入 onLoad="" onResize="" 方法 写上对应的方法即可方法二:window.onresize=function(){///.....} 在方法里面写上对应的代码即可着两种方法基本都可以解决你的问题了
window.onresize=function(){
var surH = $(window).height();
$(".pic_conent").height(surH);
}
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn