久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

拆分一個html頁面并通過標題加載它?

Splitting up a html page and loading it through header?(拆分一個html頁面并通過標題加載它?)
本文介紹了拆分一個html頁面并通過標題加載它?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我正在使用 HTML5,并希望通過將標準 HTML 模板拆分為三個單獨的 HTML 文件來加快創建和編輯的速度.

I am using HTML5, and would like to speed up the creation and editing of my standard HTML template by splitting it into three separate HTML files.

  • header.html
  • content.html(這將被編輯并具有其他名稱,例如 home)
  • 頁腳.html

我查看了以下資源,但我不確定這是否可行或如何去做.

I have looked at the following resources, but I am not sure if this is possible or how to go about it.

http://www.w3schools.com/html/html_head.asp

http://www.w3schools.com/tags/tag_link.asp

在 PHP 中,我只會按正確的順序包含文件.在純 HTML 網站中是否有等價物?

In PHP I would just include the files in the right order. Is there an equivelant in just a plain HTML site?

我已經用谷歌搜索了這個,但我認為我沒有找到正確的術語.我將不勝感激任何可用的信息或資源!

I have googled this, but I don't think Im searching for the right term. I would appreciate any information, or resources available!

感謝您的寶貴時間!

推薦答案

對于一個靜態 HTML 站點,沒有 html-only 方法可以按照您嘗試的方式包含文件.您可能能夠使用服務器端包含,具體取決于您的服務器,但到那時,您還不如只使用 PHP.

For just a static HTML site, there is no html-only way to include files the way you are trying to. You may be able to use server-side includes depending on your server, but by that point, you might as well just use PHP.

另一種選擇是在頁面的主要部分已經加載后廣泛使用 Javascript 來加載頁面片段.

Another option would be to make extensive use of Javascript to load the page pieces after the main part of the page is already loaded.

但是,在所有情況下,性能都會大大降低,因為服務器請求很慢.如果您需要使用模板,只需使用 PHP 等動態語言即可.

In all cases, though, you will have a major reduction in performance, since a server request is slow. If you need to use templates, just use a dynamic language like PHP.

這篇關于拆分一個html頁面并通過標題加載它?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How do we clear spy programmatically in Jasmine?(我們如何在 Jasmine 中以編程方式清除間諜?)
How do I write FileReader test in Jasmine?(如何在 Jasmine 中編寫 FileReader 測試?)
Jasmine - how to spyOn instance methods(Jasmine - 如何監視實例方法)
jasmine 2 - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL(jasmine 2 - 在 jasmine.DEFAULT_TIMEOUT_INTERVAL 指定的超時時間內未調用異步回調) - IT屋-程序員軟件開發技術分享社
Jasmine.js comparing arrays(Jasmine.js 比較數組)
How does one stub promise with sinon?(一個stub如何與sinon約定?)
主站蜘蛛池模板: 亚洲乱码国产乱码精品精的特点 | 男女午夜激情视频 | 国产高清免费 | 美日韩视频 | 91色综合| 亚洲精品久久嫩草网站秘色 | 一区精品视频在线观看 | 精品国产99| 天天天操 | 中文字幕国产精品 | 国产精品视频网 | 91国内外精品自在线播放 | 国产精品成人在线播放 | 黄色大片免费播放 | 国产欧美一区二区三区国产幕精品 | www.47久久青青 | 欧美日韩高清在线观看 | 中文字幕在线三区 | 99久久免费精品国产免费高清 | 91精品国产91久久久久久 | 欧美视频日韩 | 亚洲精品久久久一区二区三区 | 欧美精品在线播放 | 亚洲一区中文字幕 | 亚洲国产网| 国产精品久久久久久久久久久久久 | 国产精品久久久久无码av | 国产美女永久免费无遮挡 | 欧美激情国产精品 | 亚洲色图在线观看 | 成人精品一区二区三区中文字幕 | 男女羞羞免费网站 | 亚洲三区视频 | 99久久免费精品国产男女高不卡 | 男人午夜视频 | 欧美视频 | 国产日韩精品在线 | 欧美精品一区三区 | 亚洲综合成人网 | 国产精品国产a | 日韩中文字幕免费在线观看 |