Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>用iframe写一个迷你小后台</title>
<link rel="stylesheet" href="css/dome1.css">
</head>
<body>
<!-- 总体 -->
<div class="total">
<!-- 头部 -->
<div class="header">
<div class="header-left">网站后台管理</div>
<div class="header-right"><a href="../1209/dome3.html" target="content">登录</a></div>
</div>
<div class="aside">
<a href="../oooo/img.html" target="content">壁纸</a>
<a href="../1209/dome1.html" target="content">课程表</a>
<a href="../1209/dome2.html" target="content">列表</a>
<a href="https://www.baidu.com/" target="content">百度</a>
<a href="https://www.php.cn/" target="content">php中文网</a>
</div>
<div class="main">
<iframe srcdoc="请点击左侧按钮" name="content"></iframe>
</div>
</div>
</body>
</html>
a{
text-decoration: none;
}
.total{
width:960px;
margin:0 auto;
margin-top:50px;
}
.header{
height:60px;
background:rgb(174, 174, 184);
font-size:24px;
line-height:60px;
padding:0 10px;
}
.header-left{
float:left;
}
.header-right{
float:right;
}
.aside{
width:200px;
height:600px;
background:lightcyan;
border:1px solid rgb(207, 235, 235);
float:left;
}
.main{
float:left;
}
iframe{
width:754px;
height:598px;
background-color: rgb(240, 235, 235);
}
.aside a {
color: rgb(121, 20, 236);
display:block;
font-size:30px;
text-align:center;
line-height:50px;
border-bottom:1px solid rgb(181, 226, 226);
}
<div style="color:red;">
<p>Hello World!</p>
</div>
<div style="color:red;">
<div style="color:blue;">
<div class="son">Hello World!</div>
</div>
</div>
<div style="color:red;">
<div class="son" style="color:pink;">Hello World!</div>
</div>
<div class="color-a" id="color-b" style="color:green;">
Hello World!
</div>
#color-b{
color:red;
}
.color-a{
color:blue;
}
div{
color:grey;
}
<div class="father">
<p class="son">Hello World!</p>
</div>
p{
color:red !important;
}
.father .son{
color:blue;
}
<div style="color:red;">你好!</div>
<head>
<style>
.cotent{
color:red;
}
</style>
</head>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<style>
@import url(style.css);
</style>