[英]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 greater than 700px, using Jquery?我想知道,如何使用 Jquery 检查 div 的高度是否大于 700px?
Any help would greatly be appreciated.任何帮助将不胜感激。 Thanks
谢谢
if ($('#mydiv').height() > 700) {
// Greater than 700px in height
}
alert($("#theDiv").height() > 700);
参考: http : //api.jquery.com/height/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.