<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>iframe后台小案例</title>
<style>
/* 标签选择器 */
nav a {
font-size: 16px;
color: black;
font-weight: bold;
}
/* 属性选择器 */
nav a.index {
color: orangered;
}
/* 群组选择器 */
nav a.download,
nav a.technique,
nav a.community {
color: green;
}
nav a:hover {
font-size: 1.01em;
color: orangered;
}
iframe {
width: 100%;
height: 600px;
border: none;
background-color: #efefef;
}
</style>
</head>
<body>
<nav>
<a href="demo1.html" target="content" class="index">首页</a>
<a href="demo2.html" target="content" class="video">视频教程</a>
<a href="demo3.html" target="content" class="study">学习路径</a>
<a href="demo4.html" target="content" class="php">PHP培训</a>
<a href="demo5.html" target="content" class="download">资源下载</a>
<a href="demo6.html" target="content" class="technique">技术文章</a>
<a href="demo7.html" target="content" class="community">社区</a>
</nav>
<iframe src="demo1.html" name="content"></iframe>
</body>
</html>