Have a single menu on multiple pages?

前端 未结 6 1406
梦如初夏
梦如初夏 2020-12-30 15:18

So I have a website and I\'m using a basic menu located at the top right corner of the screen. It\'s links are as follows:

| Home | Blog | Results | Pictures         


        
6条回答
  •  滥情空心
    2020-12-30 16:17

    I think this is the easiest way of doing it without a server side language. Use a javascript library like W3Data. All you need to do is add the w3-include-html attribute to your div. Done!

    If your menu is in a file called menu.html you'd do something like this.

提交回复
热议问题