本文介绍了在多个页面上有一个菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个网站,我正在使用位于屏幕右上角的基本菜单。它的链接如下:

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 | Our Location |

每次需要添加一个新的链接到菜单或更改其中一个链接指着。这意味着在菜单存在的每个页面上,我都必须手动更改链接。确实有一些方法可以在每个页面上放置一个主菜单。

Form time to time I need to add a new link to the menu or change where one of the links points to. This means that on every page that the menu exist I must manually change the link. Surely there is some way to have a master menu that is just put on every page.

或者我在做梦?

推荐答案

将菜单放在单独的文件中,并将其包含在服务器端,可以使用像PHP这样的完整脚本语言(一行)或使用。

Put the menu in a separate file and include it on the server side, either using a full-blown scripting language like PHP (one line) or using SSI.

这篇关于在多个页面上有一个菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 02:33