在iframe内的页面怎样计算出iframe的尺寸,结贴率百分百 试试document.documentElement.offsetWidthdocument.documentElement.offsetHeight 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 谢谢 functionsub !!我在firefox下测试了,得不到50,50 $(function(){ var _width = window.innerHeight || document.documentElement.offsetWidth; var _height = window.innerWidth || document.documentElement.offsetHeight; alert(_width + ' ' + _height);}); 我有一个页面 存在着三个iframe,嵌套着同一个页面,页面有一个获取body 宽度方法,但是 弹出来body 的宽度不一样。第一个iframe 长,第二个和第三个iframe Body 长度是一样。 楼主这是为什么? jquery 图片切换效果 AES在C#中加密到Js中解密 Jquery 路径变量问题 javascript 取表格中对应的值问题! 如何用history.back()返回前一个页面的时候取消前一页面的alert csdn论坛头像上面的特效:鼠标移动到头像弹出div已经做好了··但是怎么控制弹出div的位置呀··· 请各位高手指点啊 菜鸟问题:如何从数据库中读入数据到下拉表单中? 请问.这个网的左边这些是怎么做的?? kindeditor 单独上传组件与bootstrap兼容性问题 js 生成 图片的问题 Dojo如何能改变控件的id?
$(function(){
var _width = window.innerHeight || document.documentElement.offsetWidth;
var _height = window.innerWidth || document.documentElement.offsetHeight;
alert(_width + ' ' + _height);
});