how to set blur screen to full page and at click page go to TOP

后端 未结 2 2061
忘了有多久
忘了有多久 2021-01-23 01:29

CSS1 worked:

.parentDisable
{    
        z-index:2000;
        width:100%;
        height:100%;
        display:none;
        position:absolute;

        left:         


        
2条回答
  •  半阙折子戏
    2021-01-23 02:07

    Instead of position: absolute use position: fixed.

    To prevent the page from jumping to top you need to include a return false within your javascript-function hidePopup_.

    The link trys to jump to the anchor # and since there isn't one, it jumps to the top.

提交回复
热议问题