Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在您的普通网页中包含页眉和页脚,这样您就不必在每个页面上重复如此多的代码?
我知道你可以用 php 做到这一点,但是如果你建立一个纯粹基于 html 的网站呢?
如果没有答案或无法解决这个问题,这是否意味着我必须在每个页面上重复我的导航条码?
感谢您的任何帮助
戴尔
有一些不使用服务器端包含的解决方案,但它们非常糟糕:
如果您不能使用其中任何一个,那么可以 - 您必须在每个文件中重复您的代码。如果服务器端包含是您的一个选项,您应该只使用它们。