自动设置iframe大小的jQuery代码

时间:2013-09-11    点击:397   
复制代码 代码如下:

<iframe src="main_folder.aspx" class="global_main" scrolling="auto" frameborder="0" name="main"></iframe>

复制代码 代码如下:

/*自动宽度*/
global.autoWidth = function () {
//global_main
$(".global_main").height($(window).height() - $(".global_header").eq(0).outerHeight());
$('.global_main').width($(window).width() - $('.global_slide').eq(0).outerWidth()).show();
};
jQuery 三击事件实现代码
查找iframe里元素的方法可传参
Jquery 的outerHeight方法使用介绍
$.get获取一个文件的内容示例代码
JQuery触发事件例如click
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved