批改状态:合格
老师批语:按前端规范, class样式不区分大小写, 所以推荐使用蛇形命名,使用连接线, 如: user-pic, 而不是userPic, 或者 user_pic, 你可以看一下所有的css属性或值, 都是这路多单词之间使用连接线而不是大小写,如text-align, background-color...




<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>php中文网</title><link rel="stylesheet" href="css/common.css" /><link rel="stylesheet" href="css/index.css" /><link rel="stylesheet" href="font_icon/iconfont.css"><script src="font_icon/iconfont.js"></script></head><body class="flexCompatible flexVertical flexShrinkFixed"><!-- 导航 --><header><ul class="flexCompatible flexDirV flexAlignC flexShrinkFixed"><li><a href=""><img src="images/logo.png" alt="php中文网" /></a></li><li><a href="">首页</a></li><li><a href="">视频教程</a></li><li><a href="">入门教程</a></li><li><a href="">社区问答</a></li><li class="flexCompatible flexVertical"><a href="" class="flexCompatible flexAlignC flexGrow">技术文章<span class="iconfont"></span></a><ul class="show "><li><a href="">头条</a></li><li><a href="">博客</a></li><li><a href="">php教程</a></li><li><a href="">php框架</a></li><li><a href="">php小知识</a></li><li><a href="">mysql教程</a></li><li><a href="">html教程</a></li><li><a href="">css教程</a></li><li><a href="">js教程</a></li><li><a href="">服务器运维</a></li></ul></li><li><a href="" class="flexCompatible flexAlignC flexGrow">资源下载<span class="iconfont"></span></a><ul class="show show1 "><li><a href="">php工具</a></li><li><a href="">在线工具</a></li><li><a href="">手册下载</a></li><li><a href="">学习课件</a></li><li><a href="">js特效</a></li><li><a href="">后端模板</a></li><li><a href="">网站源码</a></li><li><a href="">类库下载</a></li></ul></li><li><a href="" class="flexCompatible flexAlignC flexGrow">编程词典<span class="iconfont"></span></a><ul class="show "><li><a href="">php词典</a></li><li><a href="">原生手册</a></li><li><a href="">mysql词典</a></li><li><a href="">Linux词典</a></li><li><a href="">Redis词典</a></li><li><a href="">html词典</a></li><li><a href="">Javascript词典</a></li><li><a href="">CSS词典</a></li><li><a href="">Bootstrap词典</a></li><li><a href="">jQuery词典</a></li></ul></li></li><li><a href="">工具下载<span class="yd"> ●</span></a></li><li><a href="">php培训<span class="xin">新</span></a></li><div class="flexCompatible"><a href="">登录</a><a href="">注册</a></div></ul></header><!-- 轮播图 --><div id="content1" class="flexCompatible"><div class="lbleft flexCompatible flexVertical"><ul><li><a href=""> php开发</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li><li><a href=""> 前端开发</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li><li><a href=""> 服务端开发</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li><li><a href=""> 移动开发</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li><li><a href=""> 数据库</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li><li><a href=""> 服务器运维&下载</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li><li><a href=""> 在线工具箱</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li><li><a href=""> 常用类库</a><span class="iconfont" style="color:RGB(168, 179, 179);"></span><ul><li></li></ul></li></ul></div><!-- 轮播图右 --><div class="lbright flexCompatible flexVertical"><ul class="flexCompatible flexAlignC"><li><a href="">PHP头条</a><span class="xin1">新</span> </li><li><a href="">孤独九剑</a></li><li><a href="">学习路线</a><span class="xin1 xin2">新</span></li><li><a href="">在线工具</a></li><li><a href="">趣味课堂</a><span class="xin1 xin3">新</span></li><li><a href="">社区问答</a></li><li><a href="">课程直播</a></li><div><input type="text" placeholder=" 输入关键词搜索"></div></ul><div class="lunbo"><img src="images/lunbo1.jpg" alt=""><span class="iconfont icon1 icon3"></span><span class="iconfont icon2 icon3"></span></div><div class="lunboBottom flexCompatible flexContentV "><img src="images/index_yunv.jpg" alt=""><img src="images/index_php_new4.jpg" alt=""><img src="images/index_php_item3.jpg" alt=""><img src="images/index_php_item2_.png" alt=""></div></div></div><!-- 广告条 --><div class="guanggao"><a href=""><img src="images/index_ad222.jpg" alt=""></a></div><!-- 头条,最新课程,常用手册 --><div id="content2" class="flexCompatible flexShrinkFixed flexContentB"><!-- 头条 --><div class="toutiao flexCompatible flexVertical flexAlignC"><div><h4> <a href="">头条</a> </h4></div><div><ul><li><a href="">php中文网原创视频:《天龙八部》公益php培训...</a></li><li><a href="">php中文网《玉女心经》公益PHP培训系列...</a></li><li><a href="">php的版本发展历史(1995-2020)</a></li><li><a href="">您知道吗?最好的语言:PHP 25 岁了!</a></li><li><a href="">史上最污技术解读,我竟然秒懂了</a></li><li><a href="">2020年最新5个简洁优秀的个人博客模板免...</a></li><li><a href="">5款优秀的vue后台管理系统模板推荐(免费...</a></li><li><a href="">6个大气的bootstrap后台管理系统模板推荐...</a></li><li><a href="">5款简洁的layui后台管理模板推荐(免费下载...</a></li><li><a href="">5款个性的网页回到顶部特效代码</a></li><li><a href="">小皮面板 v0.53 版本今日发布!</a></li><li><a href="">phpstudy v8.1.0.4 版本今日发布!</a></li></ul></div></div><!-- 最新课程 --><div class="kecheng flexCompatible flexVertical flexAlignC"><div><h4> <a href="">最新课程</a> </h4></div><div class="flexCompatible flexWrap flexContentC flexContentV"><a href=""><img src="images/kecheng1.jpg" alt=""><div><span>中级</span> PHP代码整洁之道 </div></a><a href=""><img src="images/kecheng2.png" alt=""><div><span>初级</span> 前端课程(五郎八卦系列):第一棍</div></a><a href=""><img src="images/kecheng3.png" alt=""><div><span>初级</span> 小皮面板使用视频教程 </div></a><a href=""><img src="images/kecheng4.jpg" alt=""><div><span>初级</span> 从零进入C语言 </div></a><a href=""><img src="images/kecheng5.jpg" alt=""><div><span>中级</span> C语言进阶篇 </div></a><a href=""><img src="images/kecheng6.png" alt=""><div><span>中级</span> PHP快速操控Excel之PhpSpreadsheet </div></a></div></div><!-- 常用手册 --><div class="shouce flexCompatible flexVertical flexAlignC"><div class="flexCompatible flexContentB flexContentC flexAlignC"><h4> <a href="">常用手册</a> </h4><h3><a href="">更多</a> </h3></div><div class="flexCompatible flexVertical"><dd class="flexCompatible flexContentB flexAlignC"><li class="flexCompatible flexAlignC flexContentC"><img src="images/shouce1.jpg" alt=""></li><li class="flexCompatible flexVertical flexContentC"><a href="">php手册Linux手册</a><a href="">ThinkPHP6.0CI手册大全</a></li></dd><dd class="flexCompatible flexContentB flexAlignC"><li class="flexCompatible flexAlignC flexContentC"><img src="images/shouce2.jpg" alt=""></li><li class="flexCompatible flexVertical flexContentC"><a href="">JavaScript中文参考手册</a><a href="">jQuery手册大全</a></li></dd><dd class="flexCompatible flexContentB flexAlignC"><li class="flexCompatible flexAlignC flexContentC"><img src="images/shouce3.jpg" alt=""></li><li class="flexCompatible flexVertical flexContentC"><a href="">MySQL参考手册大全</a><a href="">laravel5.8速查表</a></li></dd><dd class="flexCompatible flexContentB flexAlignC"><li class="flexCompatible flexAlignC flexContentC"><img src="images/shouce4.jpg" alt=""></li><li class="flexCompatible flexVertical flexContentC"><a href="">Python参考手册大全</a><a href="">Node.js中文学习手册</a></li></dd><dd class="flexCompatible flexContentB flexAlignC"><li class="flexCompatible flexAlignC flexContentC"><img src="images/shouce5.jpg" alt=""></li><li class="flexCompatible flexVertical flexContentC"><a href="">html手册CSS手册</a><a href="">AngularJSAjax手册</a></li></dd><dd class="flexCompatible flexContentB flexAlignC"><li class="flexCompatible flexAlignC flexContentC"><img src="images/shouce6.jpg" alt=""></li><li class="flexCompatible flexVertical flexContentC"><a href="">ASP参考手册大全</a><a href="">Bootstrap3参考手册</a></li></dd></div></div> <!-- 常用手册结束 --></div> <!-- 头条,最新课程,常用手册结束 --><!-- 技术文章,网站源码,原生手册,推荐博文 --><div id="content3" class="flexCompatible flexShrinkFixed flexContentB"><div class="left flexCompatible flexVertical"><div class="lunbo2"><a href=""><img src="images/急速入门.jpg" alt=""><div class="flexCompatible flexLeve flexAlignC"><h3> PHPStudy急速入门视频教程</h3><span></span><span></span><span></span></div></a></div><ul class="flexCompatible flexVertical flexAlignC flexContentC"><li class="flexCompatible flexAlignC flexContentB"><h4> php开发辅助工具下载</h4><a href="">更多>></a></li><li><a href=""><span>• </span>小皮面板(phpStudy for Linux 服务器运维管理</a><span>01-17</span></li><li><a href=""><span>• </span>VSCode Windows 64位 下载</a><span>01-16</span></li><li><a href=""><span>• </span>Memcached Win64位系统 1.4.4版本</a><span>10-26</span></li><li><a href=""><span>• </span>Memcached Win32位系统 1.4.4版本</a><span>10-26</span></li><li><a href=""><span>• </span>Memcached Win64位系统 1.4.5版本</a><span>10-26</span></li><li><a href=""><span>• </span>Memcached Win32位系统 1.4.5版本</a><span>10-26</span></li><li><a href=""><span>• </span>phpstudy安全自检修复程序</a><span>09-23</span></li><li><a href=""><span>• </span>phpStudy V8.1(Win64位)</a><span>08-05</span></li><li><a href=""><span>• </span>phpStudy V8.1(Win32位)</a><span>08-05</span></li></ul></div><div class="middle" class="flexCompatible flexVertical"><div><ul class="flexCompatible flexAlignC"><li><span>技术文章</span> </li><li><span>网站源码</span></li><li><span>原生手册</span></li><li><span>推荐博文</span></li></ul></div><div><ul class="flexCompatible flexVertical flexContentC"><li><a href=""><span>php教程</span><span>什么是波兰式?</span></a><span>06-25</span></li><li><a href=""><span>PHP7</span><span>学习PHP7的革新与性能优化</span></a><span>06-24</span></li><li><a href=""><span>Mysql教程</span><span>mysql中char表示什么意思</span></a><span>06-24</span></li><li><a href=""><span>Laravel</span><span>Laravel如何包含自己的助手函数?</span></a><span>06-24</span></li><li><a href=""><span>ThinkPHP</span><span>ThinkPHP6.0多语言优化扩展包的安装与使用</span></a><span>06-24</span></li><li><a href=""><span>css教程</span><span>css新增伪类有哪些</span></a><span>06-24</span></li><li><a href=""><span>js教程</span><span>ES6 Generator基本使用</span></a><span>06-24</span></li><li><a href=""><span>Redis</span><span>Redis集群中的节点分为哪两个?</span></a><span>06-23</span></li><li><a href=""><span>小程序开发</span><span>什么是骨架屏(Skeleton Screen)?</span></a><span>06-23</span></li><li><a href=""><span>Python教程</span><span>Python 如何自定义模块?</span></a><span>06-23</span></li><li><a href=""><span>Python教程</span><span>Python 的 help 函数使用</span></a><span>06-23</span></li><li><a href=""><span>Java基础</span><span>Java Reactor 反应器模式</span></a><span>06-23</span></li><li><a href=""><span>C#.Net教程</span><span>C++语言标识符的命名规则是什么?</span></a><span>06-23</span></li><li><a href=""><span>GolangGo</span><span>Wails 框架构建桌面应用示例</span></a><span>06-22</span></li><li><a href=""><span>Docker</span><span>docker是什么?有什么作用?</span></a><span>06-22</span></li><li><a href=""><span>PHP问题</span><span>PHP中 fsockopen 函数怎么用?</span></a><span>06-22</span></li><li><a href=""><span>Apache</span><span>如何在centos下安装apache</span></a><span>06-20</span></li><li><a href=""><span>Nginxnginx</span><span>实现负载均衡有哪几个模式</span></a><span>06-20</span></li></ul></div></div><div class="right flexCompatible flexVertical flexAlignC"><div><a href=""> 最新社区问答</a></div><ul><li><a href="">请问jQuery按手机返回键后,不回退回页面...</a></li><li><a href="">PHP7 编译安装 扩展相关问题</a></li><li><a href="">90%22=2 这个是怎么个模法?</a></li><li><a href="">页面中iframe内元素点击</a></li><li><a href="">朱老师, 这个地方按你的分类列表出不来...</a></li><li><a href="">朱老师,第6章后是不是还有内容啊</a></li><li><a href="">发帖后,再进行修改,帖子时间是第一次的...</a></li><li><a href="">think目录下没有Db目录</a></li><li><a href="">只能访问index,不能访问hello</a></li><li><a href="">编辑页面出不来</a></li><li><a href="">关键词打开网站很慢怎么解决</a></li><li><a href="">登录不能跳转到后台</a></li><li><a href="">访问中心服务器错误</a></li><li><a href="">phpcom后台保存远程图片的问题</a></li><li><a href="">http://www.phpcms.cn/网站倒闭</a></li><li><a href="">pdo_mysql开启与关闭有什么影响?</a></li><li><a href="">出错了</a></li><li><a href="">最新ThinkPHP 5.1全球首发视频教程(60...</a></li></ul></div></div><!-- 技术文章,网站源码,原生手册,推荐博文结束 --><!-- 广告条2 --><div class="guanggao2"><a href=""><img src="images/广告2.jpg" alt=""></a></div><!-- 广告条2结束 --><!-- 编程词典开始 --><div id="content4" class="flexCompatible flexShrinkFixed flexContentB"><div class="left flexCompatible flexVertical"><div><span>词典分类</span></div><ul class="flexCompatible flexVertical flexAlignE"><li><a href=""><span class="iconfont icon-daima2"></span><span>HTML/CSS</span><span>HTML/CSS</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>JavaScript</span><span>JavaScript</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>服务端</span><span>服务端</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>数据端</span><span>数据端</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>移动端</span><span>移动端</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>XML</span><span>XML</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>ASP.NET</span><span>ASP.NET</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>Web Services</span><span>Web Services</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>开发工具</span><span>开发工具</span></a></li><li><a href=""><span class="iconfont icon-daima2"></span><span>网站建设</span><span>网站建设</span></a></li></ul></div><div class="right flexCompatible flexVertical"><ul class="flexCompatible flexAlignC"><li>词典查询</li><li>全部词典</li><li>最近更新</li></ul><div class="flexCompatible flexVertical"><div class="flexCompatible flexVertical flexAlignC"><a href=""><h1>编程词典</h1></a><span>服务码农的在线技术手册</span></div><div class="flexCompatible flexContentC"><span class="iconfont"></span><input type="text"><button>搜索</button></div><div class="flexCompatible flexAlignC"><span>热门搜索:</span><a href="">PHP</a><a href="">MySQL</a><a href="">jQuery</a><a href="">HTML</a><a href="">CSS</a></div><div><span>历史搜索:</span></div></div></div></div><!-- 编程词典结束 --><!-- php入门精品课程开始 --><div class="content5 flexCompatible flexVertical flexShrinkFixed"><div class="flexCompatible flexVertical"><div class="top flexCompatible flexContentC flexAlignC"><span class="iconfont icon-daima2"></span><h2>PHP入门精品课程</h2><span class="iconfont icon-daima2"></span></div><div class="bottom flexCompatible"><ul class="flexCompatible flexVertical flexAlignC"><li><img src="images/入门精品课程.jpg" alt=""></li><li><a href="" class="tupian"><img src="images/t1.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">中级</span><span>ThinkPHP6.0极速入门</span></div><div><span class="span2">4W+次播放</span></div></div></a></li></ul><ul class="flexCompatible flexWrap flexContentV flexAlignC"><li><a href=""><img src="images/t2.png" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>编程学习方法分享直播</span></div><div><span class="span2">1W+次播放</span></div></div></a></li><li><a href=""><img src="images/t3.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>2018前端入门_HTML5</span></div><div><span class="span2">18W+次播放</span></div></div></a></li><li><a href=""><img src="images/t4.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">中级</span><span>CSS视频教程-玉女心经</span></div><div><span class="span2">10W+次播放</span></div></div></a></li><li><a href=""><img src="images/t5.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>JavaScript极速入门</span></div><div><span class="span2">18W+次播放</span></div></div></a></li><li><a href=""><img src="images/t6.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">中级</span><span>孤独九剑(6)_jQuery</span></div><div><span class="span2">12W+次播放</span></div></div></a></li><li><a href=""><img src="images/t7.jpeg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>30分钟学会网站布局</span></div><div><span class="span2">6W+次播放</span></div></div></a></li><li><a href=""><img src="images/t8.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>[公益直播课]Web前端</span></div><div><span class="span2">5W+次播放</span></div></div></a></li><li><a href=""><img src="images/t9.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>phpSyudy极速入门视频</span></div><div><span class="span2">40W+次播放</span></div></div></a></li><li><a href=""><img src="images/t10.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">中级</span><span>孤独九剑(4)_PHP视频</span></div><div><span class="span2">50W+次播放</span></div></div></a></li><li><a href=""><img src="images/t11.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>php完全自学手册</span></div><div><span class="span2">20W+次播放</span></div></div></a></li><li><a href=""><img src="images/t12.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">初级</span><span>MySQL权威开发指南</span></div><div><span class="span2">2W+次播放</span></div></div></a></li><li><a href=""><img src="images/t13.jpg" alt=""><div><div class="flexCompatible flexContentC flexAlignC"><span class="span1">中级</span><span>[公益直播课]php实战</span></div><div><span class="span2">3W+次播放</span></div></div></a></li></ul></div></div></div><!-- php入门精品课程结束 --><!-- 尾部开始 --><footer class="flexCompatible flexShrinkFixed flexContentC flexAlignC"><div class="bottom flexCompatible"><dd><li><a href="">网站首页</a><a href="">PHP视频</a><a href="">PHP实战</a><a href="">PHP代码</a><a href="">PHP手册</a><a href="">词条</a><a href="">手记</a><a href="">编程词典</a></li><li><span>php中文网:公益在线php培训,帮助PHP学习者快速成长!</span><img src="images/行业认证.png" alt=""><span>合肥彼岸互联信息技术有限公司</span></li><li><span>Copyright 2014-2020 https://www.php.cn/ All Rights Reserved | 皖B2-20150071-9</span><span><img src="images/foot_line.gif" alt=""> 皖公网安备 34010402701654号 <img src="images/foot_line.gif" alt=""></span><span><a href="">关于我们</a><a href="">负责申明</a><a href="">赞助与捐赠</a><a href="">广告合作</a></span></li><li><span>座机号码:0551-64933227 安徽省合肥市政务新区置地广场D座2101</span> </li></dd><div><img src="images/二维码群.png" alt=""><img src="images/php二维码.jpg" alt=""></div></div></footer><!-- 尾部结束 --></body></html>
.iconfont {font-family: "iconfont" !important;font-size: 25px;font-style: normal;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}body {display: flex;flex-direction: column;align-items: center;}header {width: 100%;}header > ul {height: 60px;background: #000; /*导航条背景*/}header > ul > li:first-of-type {width: 140px; /*logo图片php中文网*/height: 60px;}header > ul img {width: 100%;height: 100%;}header > ul > li:not(:first-of-type) {height: 60px; /*除了第一个li剩下的li元素*/text-align: center;line-height: 60px;margin-left: 20px;width: 96px;position: relative;}header > ul > li:not(:first-of-type):hover {border-bottom: 5px solid RGB(95, 184, 120);}header > ul a {/*链接字体颜色*/color: RGB(168, 179, 179);}header > ul > div:last-of-type {margin-left: auto; /*登录注册的位置*/}header > ul > div:last-of-type a {width: 60px; /*登录注册的大小*/height: 60px;line-height: 60px;text-align: center;}header > ul > div:last-of-type a:hover {background: RGB(54, 60, 65);}header > ul > li:nth-of-type(2) {width: 68px;height: 60px;background: RGB(54, 60, 65);}header .xin {background: RGB(255, 87, 34);color: #fff;font-size: 13px;display: inline-block;width: 18px;height: 18px;position: absolute;top: 3px;border-radius: 2px;line-height: normal;}header .yd {line-height: normal;position: absolute;top: 14px;color: RGB(255, 87, 34);}header .show {width: 200px;height: 200px;background: #fff;box-shadow: 0 0 3px #888888;padding: 0;position: absolute;top: 60px;display: none;z-index: 99;}header .show1 {height: 160px;}header .show li,header .show1 li {width: 90px;height: 34px;text-align: center;line-height: 34px;padding: 0;margin: 5px 5px 0 5px;float: left;}header > ul > li > ul > li > a {color: RGB(51, 51, 51);}header > ul > li:hover .show {display: block;}header .show li:hover {background: RGB(242, 242, 242);}/* 轮播部分 */#content1 {width: 1200px;height: 510px;box-shadow: 0 0 5px #888888;margin-top: 35px;border-radius: 10px;}#content1 > .lbleft {width: 216px;height: 510px;background: RGB(43, 51, 59);border-radius: 10px 0 0 10px;}#content1 > .lbright {width: 984px;height: 510px;border-radius: 0 10px 10px 0;}#content1 > .lbleft > ul {margin-top: 15px;}#content1 > .lbleft > ul > li {width: 216px;height: 60px;line-height: 60px;display: flex;justify-content: start;}#content1 > .lbleft > ul > li > span {margin-left: auto;margin-right: 10px;}#content1 > .lbleft > ul > li > a {color: RGB(168, 179, 179);}#content1 > .lbleft > ul > li:hover {background: RGB(107, 113, 118);cursor: pointer;}#content1 > .lbright > ul {width: 984px;height: 60px;border-radius: 0 10px 0 0;}#content1 > .lbright > ul > li {width: 80px;height: 60px;margin-left: 15px;text-align: center;line-height: 60px;}#content1 > .lbright > ul > li > a {color: RGB(52, 51, 51);}#content1 > .lbright > ul > li > a:hover {color: RGB(149, 150, 149);}#content1 > .lbright > ul > div:last-of-type {margin-left: auto;margin-right: 20px;width: 260px;height: 40px;}#content1 > .lbright > ul > div:last-of-type input {width: 100%;height: 100%;border-radius: 5px;border: 0;outline: none;background: RGB(241, 240, 240);}#content1 > .lbright > ul .xin1 {background: RGB(255, 87, 34);color: #fff;font-size: 13px;display: inline-block;width: 18px;height: 18px;border-radius: 2px;line-height: normal;margin-left: 2px;}#content1 > .lbright > ul .xin2 {background: RGB(47, 64, 86);}#content1 > .lbright > ul .xin3 {background: RGB(255, 184, 0);}#content1 > .lbright > .lunbo {width: 984px;height: 330px;background: lightgreen;position: relative;}#content1 > .lbright > .lunbo img {width: 100%;height: 100%;}#content1 > .lbright > .lunbo .icon1 {font-size: 40px;width: 45px;height: 45px;border-radius: 50%;background: rgba(0, 0, 0, 0.2);color: #fff;cursor: pointer;position: absolute;top: 48%;left: 0;}#content1 > .lbright > .lunbo .icon2 {font-size: 40px;width: 45px;height: 45px;border-radius: 50%;background: rgba(0, 0, 0, 0.2);color: #fff;cursor: pointer;position: absolute;top: 48%;right: 0;}#content1 > .lbright > .lunbo .icon3:hover {background: rgba(0, 0, 0, 0.4);}#content1 > .lbright > .lunboBottom {width: 984px;height: 105px;}#content1 > .lbright > .lunboBottom img {width: 236px;height: 90px;margin-top: 15px;border-radius: 10px;}.guanggao {width: 1200px;height: 100px;}.guanggao img {width: 1200px;height: 80px;border-radius: 10px;margin-top: 20px;}#content2 {width: 1200px;height: 446px;}#content2 .toutiao {height: 416px;width: 300px;}#content2 .kecheng {width: 620px;height: 416px;}#content2 .shouce {width: 260px;height: 416px;}#content2 .toutiao,#content2 .kecheng,#content2 .shouce {margin-top: 30px;border-radius: 10px;box-shadow: 0 0 3px #888888;}#content2 .toutiao div:first-of-type {width: 280px;height: 36px;color: RGB(52, 53, 53);line-height: 36px;border-bottom: 1px dotted #bbb;}#content2 .toutiao div:first-of-type a {color: RGB(52, 53, 53);}#content2 .toutiao div:last-of-type {width: 280px;height: 338px;}#content2 .toutiao div:last-of-type li {width: 100%;height: 19px;display: flex;flex-wrap: nowrap;flex: 0;margin-top: 9px;}#content2 .toutiao div:last-of-type li a {font-size: 13px;color: RGB(51, 51, 51);letter-spacing: 0px;}#content2 .toutiao div:last-of-type li a:hover {color: #888888;}#content2 .kecheng div:first-of-type {width: 580px;height: 36px;color: RGB(52, 53, 53);line-height: 36px;border-bottom: 1px dotted #bbb;}#content2 .kecheng div:first-of-type a {color: RGB(52, 53, 53);}#content2 .kecheng div:last-of-type {width: 580px;height: 338px;}#content2 .kecheng div:last-of-type a {width: 172px;height: 140px;display: flex;flex-flow: column nowrap;margin-top: 20px;box-shadow: 0 0 5px #888888;border-radius: 5px;}#content2 .kecheng div:last-of-type a img {width: 172px;height: 90px;border-radius: 5px 5px 0 0;}#content2 .kecheng div:last-of-type a div {width: 172px;height: 65px;margin-top: -15px;border-radius: 5px;background: #fff;z-index: 99;}#content2 .kecheng div:last-of-type a div {color: RGB(52, 53, 53);font-size: 15px;line-height: 20px;padding: 10px;}#content2 .kecheng div:last-of-type a div:hover {color: #888;}#content2 .kecheng div:last-of-type a div span:first-of-type {background: RGB(147, 153, 159);color: #fff;margin-top: -5px;margin-left: 10px;font-size: 12px;line-height: 20px;}#content2 .shouce a {color: RGB(52, 53, 53);}#content2 .shouce > div:first-of-type {width: 230px;height: 36px;border-bottom: 1px dotted #bbb;}#content2 .shouce > div:last-of-type {width: 230px;height: 330px;}#content2 .shouce > div:last-of-type > dd {width: 230px;height: 55px;}#content2 .shouce > div:last-of-type > dd > li:first-of-type {width: 50px;height: 55px;}#content2 .shouce > div:last-of-type img {width: 40px;height: 40px;}#content2 .shouce > div:last-of-type > dd > li:last-of-type {height: 55px;width: 160px;}#content2 .shouce > div:last-of-type > dd > li:last-of-type a:hover {color: #888;}/*技术文章,网站源码,原生手册,推荐博文*/#content3 {width: 1200px;height: 515px;}#content3 > .left {width: 360px;height: 500px;}#content3 > .left .lunbo2 {width: 360px;height: 187px;border-radius: 5px;background: #fff;box-shadow: 0 0 5px #888;position: relative;}#content3 > .left .lunbo2 img {width: 356px;height: 183px;border-radius: 5px;margin: 2px 2px;}#content3 > .left .lunbo2 a div:last-of-type {width: 360px;height: 26px;position: absolute;bottom: 2px;left: 2px;z-index: 99;}#content3 > .left .lunbo2 a div:last-of-type h3 {display: block;width: 290px;height: 26px;background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1));color: #fff;line-height: 26px;border-radius: 0 0 0 5px;}#content3 > .left .lunbo2 a div:last-of-type span {display: block;width: 10px;height: 10px;background: rgba(0, 0, 0, 0.7);margin-left: 8px;}#content3 > .left .lunbo2 a div:last-of-type span:first-of-type {background: RGB(250, 155, 31);}#content3 > .left > ul {width: 360px;height: 300px;margin-top: 13px;padding: 0;border-radius: 5px;box-shadow: 0 0 5px #888888;}#content3 > .left > ul > li:first-of-type {width: 360px;height: 35px;}#content3 > .left > ul > li:first-of-type a {margin-right: 10px;font-size: 12px;color: RGB(51, 51, 51);}#content3 > .left > ul > li:not(:first-of-type) {width: 350px;height: 28px;line-height: 28px;display: flex;justify-content: space-between;align-items: center;}#content3 > .left > ul > li:not(:first-of-type) a {color: RGB(51, 51, 51);}#content3 > .left > ul > li:not(:first-of-type) a:hover {color: RGB(153, 153, 153);}#content3 > .left > ul > li:not(:first-of-type) span {color: RGB(153, 153, 153);}#content3 > .middle {width: 508px;height: 500px;box-shadow: 0 0 5px #888888;border-radius: 5px;}#content3 > .middle > div:first-of-type {width: 508px;height: 36px;border-bottom: 1px solid RGB(234, 234, 234);}#content3 > .middle > div:first-of-type ul li {width: 90px;height: 36px;line-height: 36px;text-align: center;}#content3 > .middle > div:first-of-type ul li span {width: 60px;display: block;height: 36px;margin: 0 15px;color: RGB(51, 51, 51);}#content3 > .middle > div:first-of-type ul li span:hover {border-bottom: 2px solid RGB(255, 74, 0);cursor: pointer;}#content3 > .middle > div:last-of-type {width: 508px;height: 464px;margin-top: 8px;}#content3 > .middle > div:last-of-type ul li {width: 508px;height: 25px;display: flex;justify-content: space-between;}#content3 > .middle > div:last-of-type ul li a {display: flex;line-height: 25px;}#content3 > .middle > div:last-of-type ul li a span:first-of-type {color: RGB(153, 153, 153);border-right: 1px solid RGB(204, 204, 204);width: 90px;height: 20px;margin-left: 10px;}#content3 > .middle > div:last-of-type ul li a span:last-of-type {color: RGB(51, 51, 51);margin-left: 20px;font-size: 14px;}#content3 > .middle > div:last-of-type ul li a span:last-of-type:hover {color: RGB(153, 153, 153);}#content3 > .middle > div:last-of-type ul li > span {color: RGB(245, 92, 11);margin-right: 10px;line-height: 25px;}#content3 > .right {width: 310px;height: 500px;border-radius: 5px;box-shadow: 0 0 5px #888888;}#content3 > .right a {color: RGB(51, 51, 51);}#content3 > .right > div {width: 310px;height: 36px;line-height: 36px;border-bottom: 1px solid RGB(234, 234, 234);}#content3 > .right > ul {margin-top: 8px;}#content3 > .right > ul li {width: 290px;height: 25px;}#content3 > .right > ul li a {font-size: 14px;line-height: 25px;}#content3 > .right > ul li a:hover {color: RGB(153, 153, 153);}#content3 > .left,#content3 > .middle,#content3 > .right {margin-top: 15px;}.guanggao2 {width: 1200px;height: 100px;}.guanggao2 > a img {width: 1200px;height: 80px;margin-top: 20px;border-radius: 10px;}/* 编程词典 */#content4 {width: 1200px;height: 410px;}#content4 > .left {width: 232px;height: 390px;margin-top: 20px;}#content4 > .left > div:first-of-type {width: 231px;height: 40px;background: RGB(238, 238, 238);color: RGB(102, 102, 102);line-height: 40px;border-radius: 10px 0 0 0;}#content4 > .left > div:first-of-type span {margin-left: 10px;}#content4 > .left > ul {width: 231px;height: 350px;background-image: radial-gradient(circle, RGB(84, 93, 125), RGB(74, 75, 93));border-radius: 0 0 0 10px;}#content4 > .left > ul a {color: #fff;}#content4 > .left > ul li {width: 211px;height: 32px;line-height: 32px;margin-top: 2px;}#content4 > .left > ul > li > a span:first-of-type {width: 10px;height: 10px;border-radius: 50%;border: 1px solid #fff;}#content4 > .left > ul > li > a span:nth-of-type(2):hover {color: RGB(187, 187, 187);}#content4 > .left > ul > li > a span:nth-of-type(2) {margin-left: 20px;}#content4 > .left > ul > li > a span:last-of-type {color: RGB(187, 187, 187);font-size: 12px;margin-left: 10px;}#content4 > .right {height: 390px;width: 966px;margin-top: 20px;}#content4 > .right > ul {width: 966px;height: 40px;background: RGB(238, 238, 238);border-radius: 0 10px 0 0;}#content4 > .right > ul > li {width: 68px;height: 40px;line-height: 40px;text-align: center;margin-left: 20px;color: RGB(102, 102, 102);}#content4 > .right > ul > li:first-of-type {background-image: radial-gradient(circle, RGB(93, 109, 154), RGB(74, 75, 93));color: #fff;}#content4 > .right > ul > li:hover {cursor: pointer;}#content4 > .right > div {width: 966px;height: 350px;background-image: radial-gradient(circle, RGB(93, 109, 154), RGB(74, 75, 93));border-radius: 0 0 10px 0;}#content4 > .right > div > div:first-of-type {width: 966px;height: 140px;}#content4 > .right > div > div:first-of-type a {display: block;width: 966px;height: 100px;line-height: 100px;text-align: center;}#content4 > .right > div > div:first-of-type a h1 {font-size: 30px;color: RGB(228, 224, 224);}#content4 > .right > div > div:first-of-type span {color: RGB(255, 255, 237);}#content4 > .right > div > div:nth-of-type(2) {width: 966px;height: 50px;}#content4 > .right > div > div:nth-of-type(2) span {width: 50px;height: 50px;font-size: 30px;background: #fff;color: RGB(183, 187, 191);line-height: 50px;}#content4 > .right > div > div:nth-of-type(2) input {width: 600px;height: 50px;border: none;outline: none;}#content4 > .right > div > div:nth-of-type(2) button {width: 80px;height: 50px;background: RGB(152, 161, 173);color: #fff;font-family: "宋体";font-size: 20px;z-index: 99;border: none;outline: none;}#content4 > .right > div > div:nth-of-type(2) button:hover {cursor: pointer;}#content4 > .right > div > div:nth-of-type(3) {margin-top: 20px;margin-left: 20px;}#content4 > .right > div > div:nth-of-type(3) span {color: #fff;}#content4 > .right > div > div:nth-of-type(3) a {display: block;height: 35px;background: RGB(137, 140, 135);line-height: 35px;text-align: center;margin-left: 20px;padding: 0 5px;color: #fff;}#content4 > .right > div > div:nth-of-type(4) {height: 35px;margin-top: 20px;}#content4 > .right > div > div:nth-of-type(4) span {color: #fff;margin-left: 20px;}.content5 {width: 1200px;height: 666px;}.content5 > div {width: 1200px;height: 646px;margin-top: 20px;background: #fff;border-radius: 10px;box-shadow: 0 0 5px #888888;}.content5 > div > .top {width: 1200px;height: 50px;text-align: center;line-height: 50px;}.content5 > div > .top > span {color: RGB(95, 159, 255);font-weight: bold;}.content5 > div > .top > h2 {font-size: 20px;font-family: "宋体";color: RGB(77, 85, 93);padding: 0 5px;}.content5 > div > .bottom {width: 1200px;height: 576px;}.content5 > div > .bottom > ul:first-of-type > li:first-of-type {width: 217px;height: 362px;margin-top: 10px;}.content5 > div > .bottom > ul:first-of-type > li:first-of-type img {width: 217px;height: 362px;border-radius: 5px;box-shadow: 0 0 5px #888888;}.content5 > div > .bottom > ul:first-of-type > li:last-of-type img {width: 217px;height: 124px;border-radius: 5px 5px 0 0;z-index: 10;}.content5 > div > .bottom > ul:first-of-type > li:last-of-type > a > div {width: 217px;height: 80px;z-index: 99;background: #fff;position: absolute;top: 92px;border-radius: 5px;}.content5 > div > .bottom > ul:first-of-type {width: 245px;height: 576px;}.content5 > div > .bottom > ul:first-of-type > li:not(:first-of-type) {width: 217px;height: 172px;margin-top: 20px;position: relative;border-radius: 5px;box-shadow: 0 0 5px #888888;}.content5> div> .bottom> ul:first-of-type> li:not(:first-of-type)> a> div:first-of-type> div {width: 217px;height: 40px;color: RGB(87, 96, 100);}.content5> div> .bottom> ul:first-of-type> li:not(:first-of-type)> a> div:first-of-type.span1 {background: RGB(147, 153, 159);padding: 1px;color: #fff;margin-right: 5px;}.content5> div> .bottom> ul:first-of-type> li:not(:first-of-type)> a> div:last-of-type {width: 217px;height: 40px;}.content5> div> .bottom> ul:first-of-type> li:not(:first-of-type)> a.span2 {color: RGB(147, 153, 159);font-size: 14px;line-height: 40px;margin-left: 25px;}.content5 > div > .bottom > ul:first-of-type > li a {color: RGB(87, 96, 100);}.content5 > div > .bottom > ul:last-of-type {width: 954px;height: 576px;}.content5 > div > .bottom > ul:last-of-type > li {width: 217px;height: 172px;position: relative;border-radius: 5px;box-shadow: 0 0 5px #888888;}.content5 > div > .bottom > ul:last-of-type > li > a > img {width: 217px;height: 124px;border-radius: 5px 5px 0 0;z-index: 10;}.content5 > div > .bottom > ul:last-of-type > li > a > div {width: 217px;height: 80px;z-index: 99;background: #fff;position: absolute;top: 92px;border-radius: 5px;}.content5 > div > .bottom > ul:last-of-type > li > a > div > div:first-of-type {width: 217px;height: 40px;color: RGB(87, 96, 100);}.content5 > div > .bottom > ul:last-of-type > li > a .span1 {background: RGB(147, 153, 159);padding: 1px;color: #fff;margin-right: 5px;}.content5 > div > .bottom > ul:last-of-type > li > a .span2 {color: RGB(147, 153, 159);font-size: 14px;line-height: 40px;margin-left: 25px;}/*底部******************************************/footer {width: 100%;height: 200px;background: RGB(57, 61, 73);}footer > .bottom {width: 1200px;height: 200px;}footer > .bottom > dd {width: 900px;height: 150px;margin-top: 30px;}footer > .bottom > dd li {width: 900px;height: 37px;position: relative;}footer > .bottom > dd li:first-of-type a {color: RGB(200, 205, 210);font-size: 13px;margin-left: 15px;line-height: 37px;}footer > .bottom > dd li span {font-size: 12px;line-height: 50px;position: relative;color: RGB(100, 125, 130);}footer > .bottom > dd li:first-of-type a:hover {color: #fff;}footer > .bottom > dd li:nth-of-type(2) img {width: 50px;height: 16px;position: absolute;bottom: 3px;left: 330px;}footer > .bottom > dd li:nth-of-type(2) span:last-of-type {margin-left: 70px;}footer > .bottom > dd li:nth-of-type(3) img {width: 15px;height: 18px;position: absolute;bottom: 0px;}footer > .bottom > dd li:nth-of-type(3) span:nth-of-type(2) {margin-left: 2px;}footer > .bottom > dd li:nth-of-type(3) span:nth-of-type(3) {margin-left: 20px;}footer > .bottom > dd li:nth-of-type(3) a {color: RGB(100, 125, 130);font-size: 13px;margin-left: 5px;}footer > .bottom > dd li:nth-of-type(3) a:hover {color: #fff;}footer > .bottom > div {width: 300px;height: 150px;margin-top: 30px;}footer > .bottom > div img {width: 100px;height: 100px;margin-top: 25px;}footer > .bottom > div img:nth-of-type(2) {margin-left: 10px;}
* {padding: 0; /* 内边距 */margin: 0; /* 外边距 */box-sizing: border-box; /* 自己设定的宽度高度默认包括了内边距,边框的宽度 */font-size: 14px;}html,body {width: 100%; /* 宽百分百显示 */height: 100%; /* 高百分百显示 */overflow: hidden;overflow-y: auto;background: RGB(243, 245, 247);}a {text-decoration: none; /*去掉下划线*/}@font-face {/*引用阿里图标库*/font-family: "iconfont";src: url("../font_icon/iconfont.eot");src: url("../font_icon/iconfont.eot?#iefix") format("embedded-opentype"),url("../font_icon/iconfont.woff2") format("woff2"),url("../font_icon/iconfont.woff") format("woff"),url("../font_icon/iconfont.ttf") format("truetype"),url("../font_icon/iconfont.svg#iconfont") format("svg");}button,img {border: none; /*去掉默认边框样式*/outline: none;}.flexCompatible {/*flex兼容性设置*/display: -webkit-flex;display: -moz-flex;display: -o-flex;display: -ms-flexbox;display: flex;}li {list-style: none; /*去掉圆点*/}.flexGrow {flex-grow: 1; /*自动填充剩余空间*/}.flexShrinkFixed {flex-shrink: 0; /*防止缩小*/}.flexShrinkAuto {flex-shrink: 1;}.flexLevel {/*水平排列*/flex-direction: row;}.flexVertical {/*垂直排列*/flex-direction: column;}.flexWrap {flex-wrap: wrap;}.flexNoWrap {flex-wrap: nowrap;}.flexContentS {/*水平左对齐*/justify-content: start;}.flexContentC {/*水平居中对齐*/justify-content: center;}.flexContentE {/* 水平右对齐 */justify-content: flex-end;}.flexContentV {/* 水平平均对齐 */justify-content: space-evenly;}.flexContentA {/*项目位于各行之前、之间、之后都留有空白的容器内*/justify-content: space-around;}.flexContentB {/* 水平两端对齐 */justify-content: space-between;}.flexAlignS {/*垂直左对齐*/align-items: flex-start;}.flexAlignC {/*垂直居中对齐*/align-items: center;}.flexAlignE {/*垂直右对齐*/align-items: flex-end;}.flexAlignB {/*基线对齐*/align-items: baseline;}.flexAlignT {/* 自动伸展 */align-items: stretch;}.alignContentA {/*每根轴线两侧的间隔都相等。所以,轴线之间的间隔比轴线与边框的间隔大一倍*/align-content: space-around;}.alignContentB {/*与交叉轴两端对齐,轴线之间的间隔平均分布*/align-content: space-between;}.icon {width: 0.5em;height: 0.5em;vertical-align: -0.15em;fill: currentColor;overflow: hidden;}
通过这次实战,我学到了很多,遇到问题就去百度或者区学习群里面问大家,收获到了很多,引用了周老师的的公共css文件和阿里图标库非常方便实用,但是代码多了我看起来也是晕晕的。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号