Home > Web Front-end > HTML Tutorial > A layout issue that has always bothered me. _html/css_WEB-ITnose

A layout issue that has always bothered me. _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:26:44
Original
949 people have browsed it

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
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template