0

Hello, I have a div with properties :

.virtual_Drop_Down_Class{
        display: none;
        position: absolute;
        height: 100px;
        width: 120px;
        z-index: 300;
        overflow: auto;
        border: 1px solid;
    }

This div will be shown as a pop up and works fine.However if the pop up is not closed and horizontal scroll is moved this div moves horizontally and is visible. I want this div to be present in the position it was poped up. Pls help.

NOTE: On vertical scroll the position remains same and works fine.

4

1 回答 1

0
.virtual_Drop_Down_Class{
    position: fixed;}

使用位置:固定而不是绝对

于 2013-06-20T07:07:29.420 回答