Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<!DOCTYPE html>
<html lang="zh_cn">
<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="https://at.alicdn.com/t/font_3205780_7eqow85axa.css">
<link rel="stylesheet" href="static/style/top.css">
<link rel="stylesheet" href="static/style/main.css">
<title>php中文网</title>
</head>
<body>
<!-- 页眉 -->
<header>
<!-- 顶部 -->
<div class="top">
<!-- 左侧 -->
<div class="neirong">
<div class="wenzi">php中文网,程序员梦开始的地方!</div>
<!-- 右侧用户 -->
<div class="you">
<a class="iconfont icon-tixingtianchong" href=""></a>
<a class="touxiang" href=""><img src="static/images/user-pic.jpeg" alt=""></a>
</div>
</div>
</div>
<!-- 导航 -->
<div class="navs">
<div class="content">
<a href="" class="logo"><img src="static/images/logo.png" alt=""></a>
<nav>
<a href="" class="active">首页</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="">php开发</a>
<a href="">大前端</a>
<a href="">后端开发</a>
<a href="">数据库</a>
<a href="">移动端</a>
<a href="">运维开发</a>
<a href="">UI设计</a>
<a href="">计算机基础</a>
</div>
<div class="slider">
<a href=""><img src="static/images/slider.jpeg" alt="" /></a>
</div>
<div class="right">
<div class="righttop">
<div class="touxiang"><a href=""><img src="static/images/user-pic.jpeg" alt=""></a></div>
<span><a href="" class="name">进</a><p>p豆 16</p></span>
<button class="xuexi">我的学习</button>
</div>
<div class="fengexian"></div>
<div class="rightfoot">
<p class="xinxi1">
<span>答问社区</span>
<a href="">答疑</a>
</p>
<p class="xinxi2">
<span>头条</span>
<a href="">今日头条</a>
</p>
<p class="xinxi3">
<span>福利</span>
<a href="">限时折扣>></a>
</p>
<p class="xinxi4">
<span>新班</span>
<a href="">20期PHP线上班</a>
</p>
<p class="xinxi5">
<span>招募</span>
<a href="">课程合作计划</a>
</p>
<p class="xinxi6">
<span>公告</span>
<a href="">APP上线啦</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="static/images/dgjj.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="static/images/ynxj.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="static/images/tlbb.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="static/images/phpkjkf.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
<li onclick="">
<img src="static/images/phpksrm.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
</ul>
</div>
<div class="bottom-right">
<div class="weixin">
<text class="iconfont icon-weixin-copy"></text>
<h4>官方公众号</h4>
</div>
<div class="qq">
<text class="iconfont icon-QQ-circle-fill"></text>
<h4>官方QQ群</h4>
</div>
</div>
</div>
</main>
</body>
</html>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
a {
text-decoration: none;
color: #555;
}
body {
background-color: rgb(243, 245, 247);
}
li {
list-style: none;
}
@import url(re.css);
header .top {
width: 100vw;
height: 40px;
background-color: #343434;
color: white;
}
header .top .neirong {
width: 1200px;
display: grid;
grid-template-columns: 400px 100px;
grid-auto-rows: 40px;
place-content: space-between;
place-items: center start;
margin: auto;
}
header .top .neirong a {
color: white;
}
header .top .neirong img {
width: 50%;
border-radius: 50%;
}
header .top .neirong .you {
display: grid;
grid-template-columns: repeat(2, 1fr);
place-items: center;
}
header .top .neirong .you .iconfont {
font-size: larger;
}
/* 导航 */
header .navs {
width: 100vw;
height: 90px;
background-color: white;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
header .navs .content {
width: 1200px;
display: grid;
grid-template-columns: 140px 1fr 200px;
grid-auto-rows: 90px;
place-items: center start;
margin: auto;
gap: 10px;
}
header .navs .content nav {
display: flex;
}
header .navs .content nav a {
padding: 0 10px;
}
header .navs .content nav a:hover,
header .navs .content nav a.active {
font-size: bold;
color: red;
}
header .navs .content a img {
width: 100%;
}
header .navs .content .search {
display: flex;
}
header .navs .content .search input[type='search'] {
border: none;
background-color: #eee;
width: 200px;
height: 36px;
outline: none;
border-radius: 20px;
padding-left: 10px;
}
header .navs .content .search .iconfont {
position: relative;
font-size: 22px;
left: -40px;
top: 6px;
color: #ccc;
}
header .navs .content .search .iconfont:hover {
cursor: pointer;
color: red;
}
@import url(font_icon/iconfont.css);
main {
font-size: 14px;
}
main .navs {
display: grid;
grid-template-rows: 400px 80px;
grid-template-columns: 160px 810px 190px;
gap: 20px;
place-content: center;
margin: 30px 0;
}
/* 统一样式 */
main .navs > * {
background-color: white;
border-radius: 20px;
}
main .navs .bottom-left {
grid-column: span 2;
}
main .navs .left {
padding: 20px 0;
display: grid;
place-items: center;
}
main .navs .left a {
padding: 10px 20px;
width: 120px;
text-align: center;
}
main .navs .left a:hover {
color: red;
border-radius: 20px;
background-color: rgb(250, 223, 227);
}
main .navs .slider img {
width: 100%;
border-radius: 20px;
}
main .navs .bottom-left {
display: grid;
grid-template-columns: 100px 1fr;
}
main .navs .bottom-left .detail img {
width: 100%;
grid-row: span 2;
}
main .navs .bottom-left .detail li {
display: grid;
grid-template-columns: 36px 85px;
gap: 3px;
/* grid-template-columns: repeat(2,36); */
}
main .navs .bottom-left .detail a:hover {
color: #ff583d;
}
main .navs .bottom-left .detail span {
color: #b6b6b6;
font-size: 12px;
}
main .navs .bottom-left .detail a {
color: black;
}
main .navs .bottom-left .desc span {
color: #b6b6b6;
font-size: 12px;
}
main .navs .bottom-left .detail {
display: flex;
place-items: center;
place-content: space-between;
}
main .navs .bottom-left .desc {
padding: 16px 0;
display: grid;
place-items: center;
}
/* 作业部分 */
main .navs .right {
display: grid;
grid-template-rows: 142px 1fr 240px;
}
main .navs .right .righttop {
display: grid;
grid-template-rows: 80px 34px ;
grid-template-columns: 40px 150px;
margin: 0 20px;
place-items:center start;
gap: 10px;
}
main .navs .right .righttop .touxiang img{
width: 100%;
border-radius: 50%;
}
main .navs .right .righttop .xuexi {
width: 150px;
height: 34px;
border: none;
background-color: red;
color: white;
border-radius: 20px;
}
main .navs .right .righttop .xuexi:hover {
cursor: pointer;
background-color: rgb(231, 0, 0);
}
main .navs .right .rightfoot {
display: grid;
grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
place-items: center start;
margin: 0 20px;
}
main .navs .right .rightfoot p {
display: grid;
grid-template-columns: 1fr 100px;
place-items: center start;
gap: 10px;
margin: 0 10px 0 0;
}
main .navs .right .fengexian {
width: 190px;
height: 1px;
background-color: #eee;
}
main .navs .right .rightfoot .xinxi1 a{
width: 31px;
height: 16px;
background-color: #ff583d;
color: white;
font-size: 14px;
text-align: center;
line-height: 16px;
border-radius: 3px;
}
main .navs .right .rightfoot>span {
font-size: bold;
}
main .navs .right .rightfoot a {
color: #b6b6b6;
}
main .navs .right .righttop .name {
font-size: 16px;
font-size: bold;
color: black;
}
main .navs .right .righttop p {
color: #b6b6b6;
}
/* 联系方式 */
main .navs .bottom-right {
display: grid;
grid-template-columns: 95px 95px;
place-items: center;
}
main .navs .bottom-right .weixin,
main .navs .bottom-right .qq {
display: grid;
grid-template-rows: 1fr 1fr;
place-items: center;
}
main .navs .bottom-right .weixin .iconfont,
main .navs .bottom-right .qq .iconfont {
font-size: 30px;
color: #b6b6b6;
}
main .navs .bottom-right .weixin h4,
main .navs .bottom-right .qq h4 {
font-size: 13px;
}
main .navs .bottom-right .weixin:hover,
main .navs .bottom-right .qq:hover {
cursor: pointer;
color: #ff583d;
}