有没有一种方法可以包含 HTML 页面,而不需要任何 javascript 或服务器端代码,只需要 HTML

发布于 2024-07-26 02:45:21 字数 188 浏览 2 评论 0原文

有没有一种方法可以包含 HTML 页面,而不需要任何 javascript 或服务器端代码,只需要 HTML。

基本上我无法确定服务器是否支持服务器端包含。 我不想使用 javascript,也不想使用任何 PHP 或其他服务器端功能。

有什么办法可以做到这一点吗? 目前我怀疑不会,但如果可能的话我会非常感兴趣。

Is there a way of including HTML pages without needing any javascript or server-side code, only HTML.

Basically I can't be sure if the server supports server side includes. I don't want to use javascript and I don't want to use any PHP or other server side functionality.

Is there any way to do this. At the moment I suspect not, but would be very interested if it were possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

伤感在游骋 2024-08-02 02:45:21

在页面中使用一些框架

HTML 框架允许作者展示
多个视图中的文档,这可能
是独立的窗口或子窗口。

是您需要包含内联浮动框架的标签。

有关 iframe 的快速提示: 确保显式打开和关闭标签,否则某些浏览器会抱怨

Use some frames in your page

HTML frames allow authors to present
documents in multiple views, which may
be independent windows or subwindows.

<iframe></iframe> is the tag you need to include inline floating frames.

Quick tip with iframes: Be sure you open and close the tag explicitly, if not some browsers will complain

往日情怀 2024-08-02 02:45:21

您可以使用框架集

You can use framesets.

夜灵血窟げ 2024-08-02 02:45:21

HTML 导入HTML 组件,旨在做到这一点。

HTML5rocks 提供了一个很棒的 HTML 导入入门教程。

根据我可以使用,目前只有 Chrome 支持 HTML 导入。

HTML imports, part of HTML Components, aims to do exactly this.

HTML5rocks offers a great tutorial to get started with HTML imports.

According to can I use, only Chrome is supporting HTML imports today.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文