Hide scrollable content behind transparent fixed position divs when scrolling the page?

后端 未结 10 1054
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 09:16

I have a div called header that is set up with a fixed position. The problem is when I scroll the page the content of the page shows up behind the header (the header is tran

10条回答
  •  离开以前
    2020-12-01 10:19

    I too faced similar issue, but solved it using a simple dirty hack

    1) have a white image in images folder

    2) then add this css in header style

    z-index:999; // to make header above the scrolling contents

    background-image : url("../images/white.png"); // to hide the scrolling content

    3) It is done!!

提交回复
热议问题