简体   繁体   English

HTML 创建外部元素,例如标题

[英]HTML create external elements, for e.g. header

This is my site这是我的网站

 <!DOCTYPE html> <html> <head> <title>gump</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="header"> <a><img src="pictures/logo.png" alt="gump" style="height:25px" href="#default" class="logo";></a> <div class="header-right"> <a class="active">Home</a> <a href="links">Links</a> <a href="e">Encryption</a> </div> </div> <div style="padding:25px"> <table style="width:100%; table-layout:fixed"> <tr> <td style="font-weight:bold">Sites</td> <td style="font-weight:bold">Partners</td> <td style="font-weight:bold">Social Media</td> <td style="font-weight:bold">Tools</td> <td style="font-weight:bold">Links</td> </tr> <tr> <td><a href="https://www.gumprecht.co.at">Home</a></td> <td><a href="https://www.pherbich.com">pherbich.com</a></td> <td><a href="https://steamcommunity.com/id/gump2826">Steam</a></td> <td><a href="https://www.byom.de/">byom.de</a></td> <td><a href="https://www.gumprecht.co.at/">gumprecht.co.at</a></td> </tr> </table> </div> <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script></body> </html>

Thats too much of just the header and the footer, i want to have the header and the footer external on a external html, but how can i get the external header.html and the footer.html in the index.html这太多了,只是页眉和页脚,我想在外部 html 上有页眉和页脚,但是如何在 index.html 中获取外部 header.html 和 footer.html

I was looking recently on the same topic and this article explains how you can do it.我最近在看同一主题,这篇文章解释了如何做到这一点。 Link to the Atricle 链接到 Atricle

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 计算外部网页(例如msn.com,yahoo.com)上的HTML元素 - Counting HTML Elements on external webpages e.g. msn.com, yahoo.com 如何在特定的JavaScript代码中加载外部HTML页面? 例如,在JS函数中 - How to load an external HTML page within a specific JavaScript code? E.g. Within a JS function 是否可以将所有AngularJS文件(例如Controller,Factory)加载到外部HTML中? - Is it possible to load all of AngularJS files (e.g. Controller, Factory) into an external HTML? 维护.html模板中公共部分的方法(例如,页眉,页脚等) - method to maintain common sections in .html templates (e.g. header, footer, etc.) 简单的JavaScript模板文字即可将迭代值(例如数组元素)插入HTML - Simple JavaScript template literals to insert iterated values (e.g. array elements) into HTML 是否可以使用HTML从任意字符串创建Jquery对象,例如var $ newlink = $(&#39; <a>new link</a> &#39;) - Is it possible to create a Jquery object from an arbitrary string with HTML e.g. var $newlink = $('<a>new link</a>') 查询任意 html 元素,例如查看它是否被禁用,使用shinyjs - query an arbitrary html element, e.g. to see if it is disabled, with shinyjs html5的验证器(例如 <input required> 不管用 - validators of html5 (e.g. <input required> is not working 在HTML中使用德语字符(例如Umlaut) - Using German characters (e.g. Umlaut) in HTML HTML5中的旋转轮图像(例如轮盘赌轮)? - Spin wheel image in HTML5 (e.g., roulette wheel)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM