Hide header/footer when url contains a certain parameter

前端 未结 6 1695
醉话见心
醉话见心 2021-01-22 17:18

I have a multi page webpage that has a header and footer on all pages, and I am creating an app than can view certain areas of the page, but I dont want to show the footer and h

6条回答
  •  走了就别回头了
    2021-01-22 17:44

    You can use a PhP shorthand IF to set two different classes, depending on whether you pass a a parameter (?hide) or not:

    ">

    Then define some CSS:

    .hidden{
        display: none;
    }
    

提交回复
热议问题