outsideHeight不是函数吗? [英] outerHeight is not a function?

查看:140
本文介绍了outsideHeight不是函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此jQuery函数遇到问题:

Having trouble with this jQuery function:

$("#content").siblings().each(function(i){
  heightOfSiblings = heightOfSiblings + this.outerHeight();     
});

错误是"outerHeight不是函数."

Error is 'outerHeight is not a function.'

我在做什么错了?

谢谢!

推荐答案

我认为您将需要$(this).outerHeight();

I think you will need $(this).outerHeight();

http://docs.jquery.com/CSS/outerHeight

这篇关于outsideHeight不是函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆