0
我不知道有什么办法可以将单个html文件分成几个文件。我有一个包含许多博客帖子的索引文件。我想为每篇博客文章创建一个不同的html文件并导入它们或将它们链接到主html文件。为每个博客文章创建不同的html文件
示例;
<html>
<head>
</head>
<body>
<header>
</header>
<article>
<div id="blog-post-1">
<!-- Content of blog post -->
</div>
<div id="blog-post-2">
<!-- Content of blog post -->
</div>
<div id="blog-post-3">
<!-- Content of blog post -->
</div>
<div id="blog-post-4">
<!-- Content of blog post -->
</div>
<div id="blog-post-5">
<!-- Content of blog post -->
</div>
</article>
我只是想为每个博客文章创建一个不同的文件;以上情况5个不同的html文件。然后,链接或导入它们在主HTML体。可能吗?
在主html中,我想显示博客帖子1.我不希望给链接文本。 – Hevan 2014-09-23 07:16:05
@你好,我为你编辑:) – 2014-09-23 08:19:04