开发者

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

开发者 https://www.devze.com 2023-01-12 20:32 出处:网络
I was wondering, how I check if the height of a div is greate开发者_运维问答r 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

精彩评论

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