javascript - The scroll bar covers the hover popup layer?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-19 10:47:52
0
4
713

After adding the scroll bar, the scroll bar covers the pop-up layer on the right side and cannot be seen. After removing the scroll bar, the content can be seen. How should this problem be solved?

(cannot pop up)

(you can see the pop-up layer)

I want to ask how to solve it. I have to add a scroll bar, but it cannot pop up after adding it. How to solve it?

<p id="sidebar" class="sidebar responsive scroll" style="height:567px;overflow :auto; scrolling: yes;"> 

This is the code on the left

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(4)
迷茫

You will cover it if there is something wrong with your layout

Ty80

The parent element has overflow:auto.
The BFC is created.
Horizontal scroll bars naturally appear.

Ty80

Your pop-up panel should not be written under the DOM of the sidebar. It should be independent. Use js to control the display coordinates to avoid this problem.

黄舟

What the person above said is correct, just use JS to traverse the click layers, and click which pop-up layer will appear. The pop-up layer is written outside the sidebar.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!