如何使用相同的设计制作网页 [英] How to make webpages with the same design
问题描述
谢谢
您可以使用PHP来包含页眉和页脚。 b $ b
例如,您将所有标题和菜单放在header.html中,并将所有页脚,版权......放在footer.html中。
创建一个index.php。在这个页面中,你可以这样写:
<?php include'header.html'; ?>
< p> body< / p>
<?php include'footer.html'; ?>
After many practice websites, I have finally made a website that is published. The problem is that if I need to change the design, i.e what is after and before (in coding) of the text that is going to be changed in every page, then I will have to change that in each of the files. Can anyone tell me about any way by which I can just change the code below and above the text. Any tag, code, software, etc that could help me, please. Thank you
You can use PHP to include header and footer.
For example, you put all the header and the menu in "header.html" and all the footer, copyright, ... in "footer.html".
The, create a index.php. In this page, you may write like that :
<?php include 'header.html'; ?>
<p>body</p>
<?php include 'footer.html'; ?>
这篇关于如何使用相同的设计制作网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!