Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<!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">
<link rel="stylesheet" href="css/zuoye.css">
<title>Document</title>
</head>
<body>
<header>
<div class="top">
<div class="content">
<div class="title">php中文网,程序员梦开始的地方!</div>
<div class="right">
<a href="" class="iconfont icon-tixingtianchong"></a>
<a href=""><img src="images/user-pic.jpeg" alt="" ></a>
</div>
</div>
</div>
<div class="navs">
<div class="content">
<a href=""><img src="images/logo.png"></a>
<nav>
<a class="active" href="">首页</a>
<a href="">视频教程</a>
<a href="">学习路径</a>
<a href="">php培训</a>
<a href="">资源下载</a>
</nav>
<div class="search">
<input type="search" placeholder="输入关键字" >
<span class="iconfont icon-fangdajing1"></span>
</div>
</div>
</div>
</header>
<main>
<div class="navs">
<div class="left">
<a href="">视频教程</a>
<a href="">学习路径</a>
<a href="">PHP培训</a>
<a href="">资源下载</a>
<a href="">技术文章</a>
<a href="">PHP培训</a>
<a href="">资源下载</a>
<a href="">技术文章</a>
</div>
<div class="slider">
<img src="images/course.jpg">
</div>
<div class="right">
<div class="main">
<div class="user">
<a href=""> <img src="images/user-pic.jpeg"></a>
<div class="user-main">
<a href="" class="user-name">kiraseo</a>
<span>P豆 48.5</span>
</div>
</div>
</div>
<div class="study">
<input type="button" value="我的学习">
</div>
<div class="list">
<p><span>问答社区</span><a class="tag" href="">答疑</a></p>
<p><span>头条</span><a href="">【吐血整理】2022年最新前端面试题大全及答案(收藏)</a></p>
<p><span>公告</span><a href="">课程合作计划</a></p>
<p><span>公告</span><a href="">课程合作计划</a></p>
<p><span>公告</span><a href="">课程合作计划</a></p>
<p><span>公告</span><a href="">课程合作计划</a></p>
</div>
</div>
<div class="bottom-left">
<div class="desc">
<div class="title">学习路径</div>
<span>全部7个></span>
</div>
<ul class="detail">
<li onclick="">
<img src="images/dgjj.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="images/ynxj.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="images/tlbb.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="images/phpkjkf.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="images/phpksrm.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
</ul>
</div>
<div class="bottom-right">
<a href=""><img src="images/tlbb.png" alt=""><span>课程</span></a>
<a href=""><img src="images/tlbb.png" alt=""><span>课程</span></a>
</div>
</div>
</main>
</body>
</html>
@import url("https://at.alicdn.com/t/font_3205780_7eqow85axa.css");
*{margin: 0; padding: 0; box-sizing: border-box;}
a{text-decoration: none; color: #333;}
li{list-style: none;}
body{
background-color: #f3f5f7;
}
header .top{
width: 100vw;
}
header .top{
height: 40px;
background-color: #343434;
color: #aaa;
}
header .top .content,
header .navs .content,
main .navs{
width: 1200px;
margin: auto;
}
header .top .content{
display: grid;
grid-template-columns: 400px 100px;
place-content: space-between ;
place-items: center start;
}
header .top .content .right{
display: grid;
grid-template-columns: 30px 60px;
place-content: space-between ;
place-items: center start;
}
header .top .content .right .iconfont{
color: #eee;
font-size: larger;
}
header .top .content img{
width: 50%;
border-radius: 50%;
}
header .navs{
height: 90px;
}
header .navs .content{
display: grid;
grid-template-columns: 140px 1fr 200px;
place-content: space-between ;
place-items: center start;
}
header .navs .content img{
width: 140px;
}
header .navs .content nav{
display: flex;
padding: 0 1em;
place-content: space-between ;
place-items: center start;
}
header .navs .content nav a{
margin-left: 24px;
font-size: larger;
font-weight: lighter;
}
header .navs .content nav a.active,
header .navs .content nav a:hover,
main .navs .left a:hover,
header .navs .content .search .iconfont:hover{
color: red;
}
header .navs .content .search{
display: grid;
grid-template-columns: 200px 1fr;
place-content: space-between ;
place-items: center start;
}
header .navs .content .search input[type='search']{
border: none;
outline: none;
background-color: #e9e9e9;
padding-left: 10px;
border-radius: 25px;
height: 40px;
}
header .navs .content .search .iconfont{
position: relative;
left: -50px;
}
main{
font-size: 14px;
}
main .navs{
display: grid;
grid-template-columns:160px 810px 200px;
grid-template-rows: 400px 80px;
gap:20px;
}
main .navs > * {
background-color: #fff;
border-radius: 20px;
}
main .navs .left{
display: flex;
flex-direction: column;
place-content: space-between;
}
main .navs .left a{
width: 126px;
margin: auto;
font-size: larger;
font-weight: lighter;
text-align: center;
}
main .navs .slider img{
width: 100%;
height: 100%;
}
main .navs .right .main{
padding: 1em;
}
main .navs .right .main .user{
display: grid;
grid-template-columns:20px 80px;
place-content: center;
place-items: flex-end;
}
main .navs .right .main .user img{
border-radius:50% ;
width: 40px;
}
main .navs .right .main .user .user-main{
font-size: 15px;
margin-left: 18px;
place-content: center;
place-self: start;
}
main .navs .right .main .user .user-main .user-name{
font-size: larger;
font-weight: bolder;
}
main .navs .right .study{
padding: 1em 1em 2em 1em;
}
main .navs .right .study input[type='button']{
width: 92%;
height: 34px;
border: none;
outline: none;
border-radius: 25px;
background-color: red;
color: #fff;
}
main .navs .right .list{
padding-top: 7px;
display: flex;
flex-direction: column;
place-content: space-between;
margin: auto;
height: 250px;
}
/*问答社区*/
main .navs .right .list p{
display: grid;
grid-template-columns: 1fr 130px;
place-content: center;
place-self: self-start;
}
main .navs .right .list p span{
font-size: larger;
font-weight:lighter;
color: #333;
place-items:start;
place-self: baseline;
margin-right: 17px;
width: 100%;
}
body main .navs .right .list p .tag{
background-color: #ff583d;
color: #fff;
margin-left: 10px;
}
main .navs .right .list p a{
place-items:end;
place-content: center;
place-self: start;
}
main .navs .right .list p a:hover{
color: red;
}
main .navs .bottom-left {
grid-column: span 2;
display: grid;
grid-template-columns:100px 1fr;
}
main .navs .bottom-left .desc {
padding: 16px 0;
display: grid;
place-items: center;
}
main .navs .bottom-left .desc span {
font-size: 12px;
color: #999;
}
main .navs .bottom-left .detail{
display: flex;
place-items: center;
place-content: space-between;
padding: 20px;
}
main .navs .bottom-left .detail >li{
display: grid;
grid-template-columns:36px 85px;
height: 36px;
}
main .navs .bottom-left .detail>li>img{
width: 100%;
grid-row: span 2;
}
main .navs .bottom-left .detail a,
main .navs .bottom-left .detail span{
margin-left: 10px;
}
main .navs .bottom-left .detail a{
font-size: 14px;
}
main .navs .bottom-left .detail span{
font-size: 12px;
color: #999;
}
main .navs .bottom-right{
display: flex;
flex-direction: row;
place-content: space-between;
}
main .navs .bottom-right a{
display: grid;
place-content: center;
place-items: center;
place-self: baseline;
}
main .navs .bottom-right img{
width: 40%;
border-radius: 50%;
}