How to add a fixed footer on all slides?

前端 未结 1 1821
长情又很酷
长情又很酷 2021-02-07 10:28

I have a presentation set up with reveal.js which is meant to be used unattended. So, I want to be able to show a little footer (or another link somewhere) on all s

1条回答
  •  有刺的猬
    2021-02-07 10:44

    This works for me (aligns to left edge as I use built-in controls on right).

    Add this to your css:

    .reveal .footer {
      position: absolute;
      bottom: 1em;
      left: 1em;
      font-size: 0.5em;
    }
    

    And in your html:

    ...

    If you want the footer to disappear as soon as user navigates (i.e. it should only be shown on first slide loaded because it is just a reminder), then add this to the end of your html:

    
    

    In order to get a fixed content in the PDF export (on all slides) you could find this answer useful.

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