该部门正在显示内容

时间:2015-10-16 10:48:14

标签: javascript html

我在分区中显示一个搜索框,我正在使用隐藏和显示脚本。但是当我点击节目时,搜索按钮显示在下面可用的内容上。 advance search where i used the script and the content is coming over the content

    <div id="showmenu">Advance Search</div>
<div class="menu" style="display: none;"><ul><li><esr-layout:search advancedSearchHref="#" /></li></ul></div>

脚本在这里

$(document).ready(function() {
     $('#showmenu').click(function() {
             $('.menu').slideToggle("fast");
     });
 });

我想在显示搜索框的同时滑动下面的内容。

1 个答案:

答案 0 :(得分:0)

我认为您需要在显示搜索框时向下滑动底部内容。然后你必须将搜索框的位置从绝对更改为相对。

.menu{
    position : relative;
}

试试这个