<!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="static/css/reset.css" />
<link rel="stylesheet" href="//at.alicdn.com/t/font_3269118_mgnsjoz5gtp.css" />
<link rel="stylesheet" href="static/css/header.css" />
<link rel="stylesheet" href="static/css/main-nav.css" />
<link rel="stylesheet" href="//at.alicdn.com/t/font_3284190_7o8q270yfoo.css">
<title>仿php.cn中文网首页差头部</title>
</head>
<body>
<!-- 页眉 -->
<header>
<!-- 1 顶部 -->
<div class="top">
<div class="content">
<div class="title">php中文网,程序员梦开始的地方!</div>
<div class="right">
<a href="" class="iconfont icon-tixing"></a>
<a href=""><img src="static/images/user-pic.jpeg" alt="" /></a>
</div>
</div>
</div>
<!-- 2 导航 -->
<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-fangdajing fdj"></span>
</div>
</div>
</div>
</header>
<!-- 主体 -->
<main>
<div class="navs">
<!-- 2行3列 -->
<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="right-content">
<div class="right-content-shang">
<div class="right-content-shang1"> <span>
<a href=""><img src="static/images/hua.jpg" alt=""></a>
</span>
<dl>
<dt><a href="">愿情的博客</a></dt>
<dd>p豆:32</dd>
</dl>
</div>
<div class="right-content-shang2">
<a href="">我的学习</a>
</div>
</div>
<div class="right-content-xia">
<div class="f1">
<span>问答社区</span>
<a href="" >答疑</a>
</div>
<div class="f2">
<p>
<span>头条</span>
<a href="">程序员有多好</a>
<!-- <marquee direction="up" style="float: right;">UP</marquee> -->
</p>
<p>
<span>新课</span>
<a href="">3.9号公益直播课</a>
</p>
<p>
<span>新班</span>
<a href="">19期PHP直播班</a>
</p>
<p>
<span>招募</span>
<a href="">课程合作计划</a>
</p>
<p>
<span>公告</span>
<a href="">APP上线啦</a>
</p>
</div>
</div>
</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//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>
<li onclick="">
<img src="static/images//dgjj.png" alt="" />
<a href="">独孤九贱</a>
<span>9门课程</span>
</li>
</ul>
</div>
<div class="bottom-right">
<ul class="content">
<li>
<a href="">
<b class="iconfont icon-weixin"></b>
<h2>官方公众号</h2>
</a>
</li>
<li>
<a href="">
<b class="iconfont icon-QQ-circle-fill"></b>
<h2>官方QQ群</h2>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</main>
</body>
</html>
main {
font-size: 14px;
}
main .navs {
/* 2行3列 */
display: grid;
grid-template-columns: 160px 810px 190px;
grid-template-rows: 400px 80px;
gap: 20px;
place-content: center;
margin: 30px 0;
}
main .navs>* {
background-color: #fff;
border-radius: 20px;
/* outline: 1px solid red; */
}
/* 底部左侧占2列 */
main .navs .bottom-left {
grid-column: span 2;
}
main .navs .slider img {
width: 100%;
border-radius: 20px;
}
/* 左侧导航 */
main .navs .left {
display: grid;
place-items: center;
padding: 20px 0;
}
main .navs .left a:hover {
color: red;
background-color: rgb(250, 223, 227);
}
main .navs .left a {
border-radius: 20px;
padding: 10px 20px;
}
/* 右侧导航栏 */
main .navs .right .right-content{
display: grid;
grid-template-rows: 142px 240px;
}
main .navs .right .right-content .right-content-shang{
display: grid;
border-bottom: 1px solid #eeeeee;
padding: 0 0 20px 0;
}
main .navs .right .right-content .right-content-shang .right-content-shang1{
margin: auto;
}
main .navs .right .right-content .right-content-shang .right-content-shang1 img{
float: left;
width: 40px;
height: 40px;
border-radius: 100px;
margin-top: 20px;
}
main .navs .right .right-content .right-content-shang .right-content-shang1 dl{
float: right;
width: 105px;
margin-top: 15px;
padding: 0 10px;
}
main .navs .right .right-content .right-content-shang .right-content-shang1 dd{
color: #b6b6b6;
}
main .navs .right .right-content .right-content-shang .right-content-shang1 a{
font-weight: bold;
}
main .navs .right .right-content .right-content-shang .right-content-shang2{
width: 150px;
height: 34px;
background: #f11717;
border-radius: 100px;
line-height: 34px;
text-align: center;
text-decoration: none;
overflow: hidden;
margin-top: 20px;
margin-left: 20px;
}
main .navs .right .right-content .right-content-shang .right-content-shang2 a {
color: #ffffff;
}
main .navs .right .right-content .right-content-xia{
display: grid;
grid-template-rows: 50px 1fr;
margin-left: 20px;
}
main .navs .right .right-content .right-content-xia .f1 a{
width: 31px;
height: 16px;
background: #ff583d;
border-radius: 2px;
font-size: 12px;
color: #ffffff;
line-height: 16px;
}
main .navs .right .right-content .right-content-xia .f2 a:hover{
color: red;
}
main .navs .right .right-content .right-content-xia .f1{
place-self: center start;
}
main .navs .right .right-content .right-content-xia .f1 span{
margin-right: 10px;
}
main .navs .right .right-content .right-content-xia .f1 a{
padding: 1px 3px;
}
main .navs .right .right-content .right-content-xia .f2{
display: grid;
place-items: center start;
}
main .navs .right .right-content .right-content-xia .f2 a{
color: #b6b6b6;
}
/* 底部左侧 */
main .navs .bottom-left {
display: grid;
grid-template-columns: 100px 1fr;/
}
main .navs .bottom-left .desc {
display: grid;
place-items: center;
padding: 16px;
}
main .navs .bottom-left .detail img {
width: 100%;
grid-row: span 2;
}
main .navs .bottom-left .detail {
display: flex;
place-items: center;
place-content: space-between;
}
main .navs .bottom-left .detail li {
display: grid;
grid-template-columns: 36px 85px;
gap: 0 10px;
place-items: center start;
}
main .navs .bottom-left .detail li a {
font-size: 14px;
}
main .navs .bottom-left .detail li a:hover {
color: red;
}
main .navs .bottom-left .detail li span,
main .navs .bottom-left .desc span {
font-size: 12px;
color: #999;
}
main .navs .bottom-right .content{
display: grid;
grid-template-columns: repeat(2,1fr);
place-items: center;
place-content: space-between;
}
main .navs .bottom-right .content li a h2{
font-size: 12px;
font-weight: bold;
height: 16px;
line-height: 16px;
overflow: hidden;
margin-top: 5px;
}
main .navs .bottom-right .content li a b{
font-size: 30px;
margin-left: 13px;
}
main .navs .bottom-right .content li {
float: left;
width: 70px;
margin-top: 13px;
margin-left: 20px;
}
main .navs .right .right-content .right-content-xia .f2 p span{
padding: 0 10px 0 0;
}
相关推荐
© 2020 asciim码
人生就是一场修行