The code is as follows
< ;div id="div1" style="height:1200px;overflow: auto;">
< /div>
, when scrolling the scroll bar of div1, div3 does not scroll with the scrolling of div2. It works normally under IE8, but this problem occurs in the compatibility mode of IE7 and IE8.
Reply to the discussion (solution)
The position of div3: absolute cannot be removed. In the future, there will be multiple overlapping divs in div2
There will be multiple divs in div2 in the future The divs overlap, and you can adjust who is on top by setting zindex
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn