Master page in HTML

后端 未结 5 1575
太阳男子
太阳男子 2021-02-03 22:41

Is there any way to create a similar idea as master/content page in ASP.NET in pure HTML?

I want to create several pages in HTML, but I want that all of them look the sa

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-03 23:35

    The simple way to do that is to use server side includes or SSI. However easier and, probably, much better solution would be usage of PHP with includes. This way you will always have additional PHP functionality then you need it. But both of this solutions require server that will preprocess the pages. If you want collection of pages, say, on a local hard drive, then only solution I know is already proposed iframe tag.

提交回复
热议问题