开发者

How do I check if the height of a div is greater than 700px, using Jquery?

I was wondering, how I check if the height of a div is greate开发者_运维问答r than 700px, using Jquery?

Any help would greatly be appreciated. Thanks


if ($('#mydiv').height() > 700) {
    // Greater than 700px in height
}


alert($("#theDiv").height() > 700);

Reference: http://api.jquery.com/height/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜