我想显示从容器溢出的绝对分区。溢出隐藏绝对分区
这里是我的要求:
- 固定的div溢出的内容。
- 溢出-y应该是自动滚动但不溢出-y
- 应该显示绝对div。
- 页面不应该被滚动的唯一固定的位置DIV应该滚动
这里是我遇到的问题:在把溢出属性面板中的绝对DIV是隐藏
- 。
- 并删除溢出属性面板不滚动。
CSS
#panel {
position: fixed;
top: 0px;
right: 20%;
bottom: 0px;
background: snow;
}
.contact {
background: skyblue;
position: relative;
height:50px;
}
.std {
width: 80px;
}
.vtl {
position: absolute;
background: red;
display: none;
left:-153px;
margin-top:-35px;
width: 150px;
height: 50px;
}
.vtl:after {
content: ' ';
height: 0;
position: absolute;
width: 0;
border: 10px solid transparent;
border-left-color: red;
left: 100%;
top: 10px;
}
.contact:hover .vtl {
display: block;
}
HTML
<div id="panel">
<div class="contact">
<div class="std">
Hover me!
</div>
<div class="vtl">
tools
</div>
</div>
<div class="contact">
<div class="std">
Hover me!
</div>
<div class="vtl">
tools
</div>
</div>
<div class="contact">
<div class="std">
Hover me!
</div>
<div class="vtl">
tools
</div>
</div>
......
</div>
是您的问题解决了吗? –
尚未解决。 –
究竟是不是在[this](http://jsfiddle.net/pZQrA/)中工作? –