[英]how do i get this div to go over the other div
I got this search "asyoutype" and the result is supose to show up with all the hits, now the problem is that it wont go over the "container" div that wrapps the search and menu. 我得到了“ asyoutype”搜索结果,所有的命中结果都显示出来了,现在的问题是它不会覆盖包装搜索和菜单的“容器” div。 I tried different positions with no success, anybody got any ideas?
我尝试过不同的职位但没有成功,有人有想法吗? let me know if i need to update with more info.
让我知道是否需要更新更多信息。
this is my css for the asyoutype resultdiv 这是我为asyoutype resultdiv的CSS
.searchResult
{
background: #fff;
text-align: left;
line-height: 1.5em;
width: 265px;
z-index: 10000;
display: none;
float: left;
clear: both;
box-shadow: 0 3px 5px #333;
-moz-box-shadow: 0 3px 5px #333;
-webkit-box-shadow: 0 3px 5px #333;
position: absolute;
right: 40px;
top: 36px;
}
this is the container header (html5) 这是容器标头(html5)
header.main {
-moz-border-bottom-colors: none;
-moz-border-image: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background: -moz-linear-gradient(center top , #F4F4F4, #D1D1D1) repeat scroll 0 0 #E4E4E4;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
border-color: #C7C8C8;
border-style: solid;
border-width: 0 1px;
margin: 0 0 22px;
overflow: hidden;
position: relative;
}
I guess that .searchResult
lives in header.main
in the DOM. 我想这
.searchResult
住在header.main
在DOM。 Because header.main
has overflow: hidden
, .searchResult
disappears. 因为
header.main
有overflow: hidden
, .searchResult
消失了。 You should move .searchResult
out of header.main
in your HTML, or remove the overflow: hidden
directive. 您应将
.searchResult
从HTML的header.main
中移出,或删除overflow: hidden
指令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.