![](/img/trans.png)
[英]after using javascript to show a div after 700px how do i hide it?
[英]How do I check if the height of a div is greater than 700px, using Jquery?
我想知道,如何使用 Jquery 檢查 div 的高度是否大於 700px?
任何幫助將不勝感激。 謝謝
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.