2015-10-16 49 views
0

我正在显示一个部门的搜索框,我正在使用隐藏和显示脚本。但是当我点击显示搜索按钮显示在下面可用的内容。 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"); 
    }); 
}); 

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

回答

0

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

.menu{ 
    position : relative; 
} 

试试这个

+0

可我们jsp中添加此?我不认为CSS会在jsp中工作。 – Akash