如何使用相同的设计制作网页 [英] How to make webpages with the same design

查看:103
本文介绍了如何使用相同的设计制作网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过多次练习网站,我终于做出了一个发布的网站。问题是,如果我需要改变设计,即在每个页面中将要改变的文本之前和之后(在编码中),那么我将不得不在每个文件中改变它。任何人都可以告诉我任何方式,我可以改变文本下方和上方的代码。任何可以帮助我的标签,代码,软件等。
谢谢

解决方案

您可以使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆