Link in sticky footer not clickable in Firefox and Chrome

前端 未结 3 1125
轮回少年
轮回少年 2021-01-18 10:50

I am using a sticky footer like described in:

  • How do you get the footer to stay at the bottom of a Web page?
  • http://ryanfait.com/resources/footer-stic
3条回答
  •  灰色年华
    2021-01-18 11:03

    Correct me if I'm wrong but I think you should add a negative value for z-index which pushes it back enabling the link button.

    This worked for me

    .footer, .push {
        height: 4em;
        position: relative;
        width: 90%;
        margin: 0 auto;
        z-index: -9000;
    }
    

提交回复
热议问题