CSS Style window background beyond page on Mac possible?

后端 未结 3 1822
一个人的身影
一个人的身影 2021-01-19 21:36

Is it possible to style or color the window pane background of the browser?
When scrolling beyond the edge in Chrome and Safari on Mac,
the whole page is pulled a bi

3条回答
  •  无人及你
    2021-01-19 22:19

    probably this is not needed anymore but maybe someone else wants to do the same :D

    this should put a background-color on the overscroll-area of any ios device

    body:after {
        content: '';
        position: fixed;
        top: -50%;
        right: -50%;
        bottom: -50%;
        left: -50%;
        z-index: -1;
        background: #000000;
    }
    

    here is the link to my gist

提交回复
热议问题