Hide header/footer when url contains a certain parameter

前端 未结 6 1701
醉话见心
醉话见心 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:35

    Using PHP

    url is www.mypage.com?inapp=true so if you need to hide header and footer when 'inapp' is true

    
        
    ...
    ....
    ...

    here header and footer are not loading at all but if you wish to just hide header and footer add css to display hide when that particular query string is set.

提交回复
热议问题