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

后端 未结 2 1977
忘了有多久
忘了有多久 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.

    0 讨论(0)
  • 2021-01-23 02:09

    Try using a position:static for .parentDisable. This will generally give you better results for what I think you're looking for.

    0 讨论(0)
提交回复
热议问题