jQuery(function($) { // Document ready var s_height = $("#search_form").outerHeight(); // Height of searchform alert(s_height) // 0
正如您在评论中提到的那样,div被隐藏,然后消失.