我下載了這個模板:https : //github.com/cobidev/simplefolio來創建一個個人網站,并在 src 檔案夾中編輯了 template.html 檔案。如何在 index.html 中運行 template.html 檔案,以便部署 index.html 檔案?將代碼復制到新的 index.html 檔案中,只會生成沒有任何影片的純 HTML。
uj5u.com熱心網友回復:
您可以使用 iframe 呈現頁面。但您也可以檢查 index.html 中的資產路徑,然后無需使用 iframe
<iframe src="template.html" width="100%" height="100%"></iframe>
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/341747.html
上一篇:將變數傳遞給私有npm包
下一篇:檢測來自ajax函式的成功回應
