您可以使用框架:
索引.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ca" lang="ca">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Site</title>
</head>
<frameset rows="100,*">
<frame src="topnav.htm" name="topnav" />
<frameset cols="300,*">
<frame name="navigation" />
<frame name="content" />
</frameset>
</frameset>
</html>
顶部导航.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Topnav</title>
</script>
</head>
<body>
<a href="topic1.htm" target="navigation">Topic 1</a> |
<a href="topic2.htm" target="navigation">Topic 2</a> |
<a href="topic3.htm" target="navigation">Topic 3</a> |
</body>
</html>
主题1.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Topic1</title>
</script>
</head>
<body>
<a href="content1-1.htm" target="content">Content 1</a> |
<a href="content1-2.htm" target="content">Content 2</a> |
<a href="content1-3.htm" target="content">Content 3</a> |
</body>
</html>
然后,创建你的
- 内容1-1.htm
- 内容1-2.htm
- 内容1-3.htm
对 topic2.htm 和 topic3.htm 执行相同的操作