How to store nav bar in one file?

前端 未结 5 1478
囚心锁ツ
囚心锁ツ 2021-01-30 11:39

I have a navigation bar for my website:

    
  • Home
5条回答
  •  情歌与酒
    2021-01-30 12:01

    You can just put your nav bar's markup into a file menu.htm and use a (server-side includes) in the spot on your pages where you want your menu's markup. https://stackoverflow.com/a/2216356/2303079

    Here's a similar discussion: Have a single menu on multiple pages?

提交回复
热议问题