请选择 进入手机版 | 继续访问电脑版
查看: 445|回复: 0

使用前端黑科技技术搭建一个酷炫的百度搜索首页面,看看有多像?

[复制链接]

699

主题

740

帖子

6038

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6038
发表于 2018-7-1 14:53:04 | 显示全部楼层 |阅读模式
1.首先我们还是先来看一下这个黑科技实现的类似于百度搜索的页面的最终效果:


0.jpg


2.这个风格相信大家都不陌生吧,基本上布局什么的和百度的完全类似。具体的实现代码如下,当然大家也可以把代码改成自己想要的样子,具体的操作大家自己尝试:

index.html
这个页面应该是实现过程中最麻烦的一个吧,用到了JQuery的几个库文件,大家直接引入即可:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>搜索-我爱科技论坛-52.technology</title>
  7. <link rel="stylesheet" href="css/common.css"/>



  8. <style>#wimoban_p, #wimoban_p a {
  9. color: #fff;
  10. font-family: "微软雅黑";
  11. }

  12. #wimoban_p {
  13. text-align: center;
  14. font-size: 14px;
  15. clear: both;
  16. }
  17. </style>
  18. </head>
  19. <body oncontextmenu='return false' ondragstart='return false'>
  20. <div id="wrapper">
  21. <div class="skinBg" style="background-image: url('images/65.jpg');"></div>
  22. <header id="header">
  23. <nav class="headNavs fr tr">
  24. <a href="http://www.52tech.tech/home.php?mod=space&do=notice"><span class="s-icon s-icon-treasure"></span><span>提醒</span></a>
  25. <a href="http://www.52tech.tech/home.php?mod=space&do=pm"><span class="s-icon s-icon-msg"></span><span>消息</span></a>
  26. <a><span class="s-icon s-icon-line"></span></a>
  27. <a href="http://www.52tech.tech/portal.php"><span>门户网站</span></a>
  28. <a href="javascript:;" class="uname"><span>我自己</span><span class="user-arrow"></span></a>
  29. <div class="topMenus dn">
  30. <span class="arrowTop"></span>
  31. <a href="http://www.52tech.tech/member.php?mod=logging&action=login">用户登录</a>
  32. <a href="http://www.52tech.tech/member.php?mod=logging&action=login">用户注册</a>
  33. </div>
  34. </nav>
  35. </header>
  36. <div class="content tc">
  37. <p class="logo"><img width="270" height="129" src="images/mylogo.png" alt="logo"/></p>
  38. <nav class="mainNavs">
  39. <a href="http://www.52tech.tech/portal.php?mod=topic&topicid=1">VIP视频</a>
  40. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=2&highlight=%D7%A8%D2%B5%BF%CE">考研资料</a>
  41. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=40&extra=">科学上网</a>
  42. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=39&highlight=WEBgl">WEBGL</a>
  43. <a href="http://www.52tech.tech/forum-41-1.html">编程专区</a>
  44. <a href="http://www.52tech.tech/forum-40-1.html">书籍资料</a>
  45. <a href="http://www.52tech.tech/forum-53-1.html">黑科技</a>
  46. <a href="http://www.52tech.tech/thread-66-1-1.html">更多>></a>
  47. </nav>
  48. <div class="searchBox">
  49. <form action="http://www.52tech.tech/search.php">
  50. <!--http://www.52tech.tech/search.ph ... =yes&kw=webgl-->
  51. <input type="text" class="searchIpt f14" name="mod=forum&searchid=2&orderby=lastpost&ascdesc=desc&searchsubmit=yes&kw" maxlength="100" autocomplete="off"/>
  52. <input type="submit" class="btn cp" value="快搜一下"/>
  53. </form>
  54. </div>
  55. <div class="mainContents oh">
  56. <div class="menusWrapper fl">
  57. <a class="active" href="javascript:;">导航</a>
  58. <a href="javascript:;">分享专区</a>
  59. <a href="http://www.52tech.tech/forum-41-1.html">编程学习</a>
  60. <a href="http://www.52tech.tech/forum-51-1.html">开源软件</a>
  61. <a href="http://www.52tech.tech/forum-54-1.html">站点帮助</a>
  62. </div>
  63. <div class="ctnerWrapper">
  64. <div class="ctnerBox">
  65. <div id="cbox-1" class="cbox tl dn">
  66. <div class="ctnerTab pr tc">
  67. <a href="#" class="on">推荐导航</a>
  68. </div>
  69. <div class="myNavs rtNavs dn pt15">
  70. </div>
  71. <div class="hotNavs rtNavs dn oh pt15">
  72. <div class="navTitle fl">热门话题</div>
  73. <div class="navArea oh">
  74. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=510&highlight=%B9%C8%B8%E8%E4%AF%C0%C0%C6%F7" target="_blank" title="谷歌所有历史版本浏览器下载"><img width="115" height="70"
  75. src="images/101.png" alt="谷歌所有历史版本浏览器下载"/></a>
  76. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=458&highlight=%BF%C6%D1%A7%C9%CF%CD%F8" target="_blank" title="科学上网直达谷歌"><img width="115" height="70"
  77. src="images/102.png" alt="科学上网直达谷歌"/></a>
  78. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=39&highlight=webgl" target="_blank" title="精品WEBGL视频教程"><img width="115" height="70"
  79. src="images/103.png" alt="精品WEBGL视频教程"/></a>
  80. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=460&highlight=webgl" target="_blank" title="OPENGL从入门到精通视频教程"><img width="115" height="70"
  81. src="images/104.png" alt="OPENGL从入门到精通视频教程"/></a>
  82. <a href="http://www.52tech.tech/portal.php?mod=topic&topicid=1" target="_blank" title="VIP视频免费看策略"><img width="115" height="70" src="images/105.png"
  83. alt="VIP视频免费看策略"/></a>
  84. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=629&highlight=java" target="_blank" title="JavaWeb全套视频教程"><img width="115" height="70"
  85. src="images/106.png" alt="JavaWeb全套视频教程"/></a>
  86. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=586&highlight=WEB%C7%B0%B6%CB" target="_blank" title="Web前端视频教程"><img width="115" height="70"
  87. src="images/107.png" alt="Web前端视频教程"/></a>
  88. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=2&highlight=%D7%A8%D2%B5%BF%CE" target="_blank" title="2018/2019全套考研视频教程"><img width="115" height="70"
  89. src="images/108.png" alt="2019全套考研视频教程"/></a>
  90. <a href="http://www.52tech.tech/forum-53-1.html" target="_blank" title="黑科技软件经验分享"><img width="115" height="70"
  91. src="images/109.png" alt="黑科技软件经验分享"/></a>
  92. <a href="http://www.52tech.tech/forum-41-1.html" target="_blank" title="我爱学习编程专区"><img width="115" height="70"
  93. src="images/110.png" alt="我爱学习编程专区"/></a>
  94. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=458&highlight=%BF%C6%D1%A7%C9%CF%CD%F8" target="_blank" title="时空隧道带你一起科学上网/VPN"><img width="115" height="70"
  95. src="images/111.png" alt="时空隧道带你一起科学上网"/></a>
  96. <a href="http://www.52tech.tech/thread-66-1-1.html" target="_blank" title="论坛常见问题解答"><img width="115" height="70"
  97. src="images/112.png" alt="论坛常见问题解答"/></a>
  98. </div>
  99. </div>
  100. </div>
  101. <div id="cbox-2" class="cbox tl dn">
  102. <div class="newsBox oh">
  103. <div class="sliderBox fl">
  104. <div class="slider">
  105. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=39&highlight=webgl" target="_blank" class="picLink active">
  106. <img width="425" height="260" src="images/news1.jpg" alt="WEBGL视频教程" title="目前全网最全面的WEBGL视频教程免费分享"/>
  107. <span href="http://www.52tech.tech/forum.php?mod=viewthread&tid=39&highlight=webgl" target="_blank" class="picTitle">目前全网最全面的WEBGL视频教程免费分享!</span>
  108. </a>
  109. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=458&highlight=%BF%C6%D1%A7%C9%CF%CD%F8" target="_blank" class="picLink">
  110. <img width="425" height="260" src="images/news2.jpg" alt="目前最新最好用的科学上网新突破方法" title="目前最新最好用的科学上网新突破方法"/>
  111. <span href="http://www.52tech.tech/forum.php?mod=viewthread&tid=458&highlight=%BF%C6%D1%A7%C9%CF%CD%F8" target="_blank" class="picTitle">目前最新最好用的科学上网新突破方法【VPN持续更新】</span>
  112. </a>
  113. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=2&highlight=%D7%A8%D2%B5%BF%CE" target="_blank" class="picLink">
  114. <img width="425" height="260" src="images/news3.jpg" alt="全国各高校的历年专业课考研真题复习资料大放送" title="全国各高校的历年专业课考研真题复习资料大放送"/>
  115. <span href="http://www.52tech.tech/forum.php?mod=viewthread&tid=2&highlight=%D7%A8%D2%B5%BF%CE" target="_blank" class="picTitle">全国各高校的历年专业课考研真题复习资料大放送</span>
  116. </a>
  117. <a href="http://www.52tech.tech/forum.php?mod=viewthread&tid=460&highlight=webgl" target="_blank" class="picLink">
  118. <img width="425" height="260" src="images/news4.jpg" alt="OPENGL和WEBGL开发原生三维游戏引擎资料推荐" title="OPENGL和WEBGL开发原生三维游戏引擎资料推荐"/>
  119. <span href="http://www.52tech.tech/forum.php?mod=viewthread&tid=460&highlight=webgl" target="_blank" class="picTitle">OPENGL和WEBGL开发原生三维游戏引擎资料推荐 </span>
  120. </a>
  121. <a href="http://www.52tech.tech/portal.php?mod=topic&topicid=1" target="_blank" class="picLink">
  122. <img width="425" height="260" src="images/news5.jpg" alt="以后再也不用会员就可以看VIP会员视频了" title="以后再也不用会员就可以免费看VIP会员视频了"/>
  123. <span href="http://www.52tech.tech/portal.php?mod=topic&topicid=1" target="_blank" class="picTitle">所有人的福利--以后再也不用会员就可以免费看VIP会员视频了</span>
  124. </a>
  125. </div>
  126. <div class="smallPics">
  127. <a class="active"><img width="68" height="40" src="images/news1.jpg" alt=""/></a>
  128. <a><img width="68" height="40" src="images/news2.jpg" alt=""/></a>
  129. <a><img width="68" height="40" src="images/news3.jpg" alt=""/></a>
  130. <a><img width="68" height="40" src="images/news4.jpg" alt=""/></a>
  131. <a><img width="68" height="40" src="images/news5.jpg" alt=""/></a>
  132. </div>
  133. </div>
  134. <div class="topic">
  135. <div class="topicTop">
  136. <span class="titleWords titleT on"><a href="javascript:;">搜索风云榜</a></span>
  137. <span class="titleTopic titleT"><a href="javascript:;">热门话题</a></span>
  138. <a class="changeWords" href="http://www.52tech.tech/thread-66-1-1.html">查看更多</a>
  139. </div>
  140. <div class="topicList">
  141. <div class="wBox topicB dn">
  142. <ul>
  143. <li><a target="_blank" href="#">Discuz网站SEO优化</a></li>
  144. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=458&highlight=%BF%C6%D1%A7%C9%CF%CD%F8">科学上网工具...</a></li>
  145. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=39&highlight=webgl">WEBGL视频教程</a></li>
  146. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=460&highlight=webgl">OPENGL三维引擎</a></li>
  147. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=2&highlight=%D7%A8%D2%B5%BF%CE">高校专业课资料...</a></li>
  148. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=564&highlight=mysql">MySQL数据库+Oracle</a></li>
  149. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=563&highlight=html">HTML5最新基础到精通</a></li>
  150. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=21&highlight=%B0%B2%D7%BF">传智播客76期安卓视频</a></li>
  151. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=424&highlight=2048">《2048游戏》开发实例</a></li>
  152. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=6&highlight=xml">韩顺平XML教程</a></li>
  153. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=590&highlight=JoinMap">JoinMap4.0破解版软件</a></li>
  154. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=59&highlight=origin">origin8.0破解版软件</a></li>
  155. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=629&highlight=java">传智黑马训练营JAVA</a></li>
  156. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=625&highlight=%D1%EE%C7%BF">杨强主讲Linux环境高级...</a></li>
  157. <li><a target="_blank" href="http://www.52tech.tech/portal.php?mod=topic&topicid=1">VIP视频免费看</a></li>
  158. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=2&highlight=%D7%A8%D2%B5%BF%CE">考研大礼包资料</a></li>
  159. </ul>
  160. </div>
  161. <div class="tBox topicB dn">
  162. <ul>
  163. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=39&highlight=webgl">二十七个WEBGL动态</a></li>
  164. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=405&highlight=%CD%F8%D2%D7">破解版网易云音乐</a></li>
  165. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=82&highlight=%BF%E1%B9%B7">酷狗音乐安卓版豪华VIP</a></li>
  166. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=56&highlight=vs">VS2017旗舰离线下载百度</a></li>
  167. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=198&highlight=vmva">Vmvare12最新版及系列</a></li>
  168. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=563&highlight=html5">一周HOLD住HTML5+CSS</a></li>
  169. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=31&highlight=ssm">动力节点王勇SSM教程</a></li>
  170. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=629&highlight=java">JAVAEE49期培训视频教程</a></li>
  171. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=607&highlight=thinking">ThinkinginC++PDF</a></li>
  172. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=623&highlight=%B0%D9%B6%C8%D4%C6">百度云加速文件清理</a></li>
  173. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=616&highlight=%CD%F2%C4%DC%C3%DC%C2%EB">万能密码查看器看密码</a></li>
  174. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=570&highlight=%B7%C7%B5%E7%C4%D4">非电脑人士管理电脑神器</a></li>
  175. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=2&highlight=%D7%A8%D2%B5%BF%CE">最新考研数学全网资料</a></li>
  176. <li><a target="_blank" href="http://www.52tech.tech/portal.php?mod=topic&topicid=1">优酷/爱奇艺/腾讯VIP视频</a></li>
  177. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=23&highlight=qt">基于QT的开发实战</a></li>
  178. <li><a target="_blank" href="http://www.52tech.tech/forum.php?mod=viewthread&tid=571&highlight=%B4%C5%C5%CC%BF%D5%BC%E4%D0%E1%CC%BD">SpaceSniffer磁盘空间嗅探</a></li>
  179. </ul>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <footer id="footer" class="tc">&#169;科技论坛 站内搜索 使用前必读</footer>
  190. </div>
  191. <script src="http://www.52tech.tech/template/dean_report_151222/deancss/js/jquery-1.8.3.min.js"></script>
  192. <script src="http://www.52tech.tech/source/plugin/hl467_bdshare/js/jquery-1.11.1.min.js"></script>
  193. <script src="js/jquery.autocomplete.min.js"></script>
  194. <script>
  195. $('.uname,.topMenus').hover(function () {
  196. $('.topMenus').stop(true, true).fadeIn(200);
  197. }, function () {
  198. $('.topMenus').stop(true, true).delay(500).fadeOut(200);
  199. });

  200. //搜索框自动补全;
  201. $('.searchIpt').AutoComplete({
  202. 'data': ['About Me', '审美网', 'abcdefg', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'smwell.com', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve'],
  203. 'itemHeight': 24,
  204. 'width': 529
  205. }).AutoComplete('show');

  206. $('.ctnerTab a').click(function () {
  207. if (!$(this).hasClass('on')) {
  208. $('.ctnerTab a').removeClass('on').eq($(this).index()).addClass('on');
  209. $('.rtNavs').stop(true, true).hide(200).eq($(this).index()).show(300);
  210. }
  211. });

  212. $('.menusWrapper a').click(function () {
  213. if (!$(this).hasClass('active')) {
  214. $('.menusWrapper a').removeClass('active').eq($(this).index()).addClass('active');
  215. $('.cbox').stop(true, true).animate({top: 318}, 100).hide().eq($(this).index()).animate({top: 0}, 400).show();
  216. }
  217. });

  218. $('.smallPics a').click(function () {
  219. if (!$(this).hasClass('active')) {
  220. $('.smallPics a').removeClass('active').eq($(this).index()).addClass('active');
  221. $('.picLink').stop(true, true).removeClass('active').eq($(this).index()).addClass('active');
  222. }
  223. });

  224. $('.titleT').hover(function () {
  225. if (!$(this).hasClass('on')) {
  226. $('.titleT').removeClass('on').eq($(this).index()).addClass('on');
  227. $('.topicB').stop(true, true).hide().eq($(this).index()).show();
  228. }
  229. });
  230. </script>

  231. <!-- 代码结束 -->
  232. <div id="wimoban_p">
  233. <p>我爱科技论坛:<a href="http://www.52tech.tech/portal.php" title="我爱科技论坛" alt="我爱科技论坛">(www.52tech.tech)</a></p>
  234. <p>目前论坛包括考研资料、编程学习、黑科技/科学上网、开源软件等资源模块,竭力服务于正在学习道路上的每一个人。</p>
  235. <p> 我爱科技论坛,爱科技,更爱分享。致力于营造一个资源丰富、内容完善的大型网络学习交流资源共享平台!</p>
  236. <p></p>
  237. </div>
  238. </body>
  239. </html>
复制代码




common.css
这个样式也是极其重要的,页面做的好不好看,全靠这个样式表了:
  1. @CHARSET "UTF-8";
  2. /*
  3. * @Description: common css
  4. * @author:
  5. * @Update: 2018-07-01
  6. */
  7. body {
  8. font: 12px/140% "Microsoft Yahei", "微软雅黑", 'Arial', 'san-serif';
  9. background-color: #666666;
  10. color: #666;
  11. margin: 0;
  12. padding: 0;
  13. }

  14. img {
  15. max-width: 100%;
  16. height: auto;
  17. width: auto;
  18. -ms-interpolation-mode: bicubic;
  19. vertical-align: middle;
  20. -moz-animation: fadein 350ms ease-out;
  21. -webkit-animation: fadein 350ms ease-out;
  22. -o-animation: fadein 350ms ease-out;
  23. animation: fadein 350ms ease-out;
  24. }

  25. a, span, footer {
  26. color: #fff;
  27. }

  28. p {
  29. margin: 0;
  30. }

  31. ul {
  32. margin: 0;
  33. padding: 0;
  34. }

  35. li {
  36. list-style: none;
  37. }

  38. a:focus {
  39. outline: none;
  40. }

  41. /* animation */
  42. @-webkit-keyframes fadein {
  43. from {
  44. opacity: 0;
  45. }
  46. to {
  47. opacity: 1;
  48. }
  49. }

  50. @-moz-keyframes fadein {
  51. from {
  52. opacity: 0;
  53. }
  54. to {
  55. opacity: 1;
  56. }
  57. }

  58. @-o-keyframes fadein {
  59. from {
  60. opacity: 0;
  61. }
  62. to {
  63. opacity: 1;
  64. }
  65. }

  66. @keyframes fadein {
  67. from {
  68. opacity: 0;
  69. }
  70. to {
  71. opacity: 1;
  72. }
  73. }

  74. /* ----------------------------------------------- */

  75. /* 自定义样式 */
  76. .fl {
  77. float: left;
  78. }

  79. .fr {
  80. float: right;
  81. }

  82. .oh {
  83. overflow: hidden;
  84. }

  85. .tc {
  86. text-align: center;
  87. }

  88. .tr {
  89. text-align: right;
  90. }

  91. .tl {
  92. text-align: left;
  93. }

  94. .dn {
  95. display: none;
  96. }

  97. .db {
  98. display: block;
  99. }

  100. .dib {
  101. display: inline-block;
  102. }

  103. .cp {
  104. cursor: pointer;
  105. }

  106. .f14 {
  107. font-size: 14px;
  108. }

  109. .pt15 {
  110. padding-top: 15px;
  111. }

  112. /* ----------------------------------------------- */

  113. .skinBg {
  114. width: 100%;
  115. height: 100%;
  116. position: absolute;
  117. left: 0;
  118. top: 0;
  119. z-index: -10;
  120. background-position: center 0;
  121. background-size: cover;
  122. background-attachment: fixed;
  123. background-repeat: no-repeat;
  124. }

  125. #header {
  126. padding: 14px 14px 0;
  127. overflow: hidden;
  128. }

  129. #header span {
  130. color: #fff;
  131. text-shadow: 0 0 3px #333;
  132. float: left;
  133. line-height: 20px;
  134. }

  135. .weatherIcon {
  136. width: 18px;
  137. height: 18px;
  138. display: inline-block;
  139. vertical-align: middle;
  140. margin-right: 5px;
  141. }

  142. .wI1 {
  143. background: url('../images/a1.png');
  144. }

  145. #header span.polutionLevel {
  146. color: #4CC74C;
  147. font-weight: 700;
  148. margin-left: 2px;
  149. }

  150. .sp {
  151. padding: 0 5px;
  152. }

  153. .headNavs {
  154. width: 800px;
  155. }

  156. .headNavs a {
  157. padding-right: 5px;
  158. text-decoration: none;
  159. display: inline-block;
  160. }

  161. .headNavs a:hover span {
  162. text-decoration: underline;
  163. }

  164. .topMenus {
  165. padding-top: 6px;
  166. position: absolute;
  167. right: 20px;
  168. top: 33px;
  169. width: 90px;
  170. z-index: 999;
  171. }

  172. .topMenus a {
  173. background-color: #FFFFFF;
  174. color: #0079F5;
  175. display: block;
  176. height: 25px;
  177. line-height: 25px;
  178. padding-left: 6px;
  179. text-align: center;
  180. text-decoration: none;
  181. }

  182. .topMenus a:hover {
  183. background-color: #f1f8ff;
  184. }

  185. .arrowTop {
  186. position: absolute;
  187. top: -5px;
  188. right: 20px;
  189. width: 0;
  190. height: 0;
  191. border-width: 6px;
  192. border-style: dashed dashed solid dashed;
  193. border-color: transparent transparent #ffffff transparent;
  194. }

  195. .s-icon {
  196. background: url('../images/spis4.png') no-repeat;
  197. cursor: pointer;
  198. width: 20px;
  199. height: 20px;
  200. display: inline-block;
  201. margin-right: 3px;
  202. }

  203. .s-icon-treasure {
  204. background-position: -12px -577px;
  205. }

  206. .s-icon-skin {
  207. background-position: -42px -577px;
  208. }

  209. .s-icon-msg {
  210. background-position: -228px -574px;
  211. }

  212. .s-icon-line {
  213. background-position: -104px -577px;
  214. width: 4px;
  215. }

  216. .user-arrow {
  217. background: url('../images/spis4.png') no-repeat -707px -588px;
  218. width: 10px;
  219. height: 10px;
  220. margin: 7px 0 0 4px;
  221. display: inline-block;
  222. }

  223. .content {
  224. padding: 0 0 30px;
  225. width: 910px;
  226. margin: -10px auto auto;
  227. }

  228. .mainNavs {
  229. margin: 30px auto;
  230. width: 620px;
  231. text-align: left;
  232. }

  233. .mainNavs a {
  234. font-size: 14px;
  235. margin-left: 12px;
  236. }

  237. .logo img {
  238. margin: 0 0 -15px;
  239. }

  240. .searchIpt {
  241. width: 515px;
  242. font-family: "微软雅黑";
  243. border: 0 none;
  244. box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  245. -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  246. height: 20px;
  247. line-height: 20px;
  248. padding: 10px 9px 10px 7px;
  249. margin-right: 3px;
  250. }

  251. .btn {
  252. background: #DDDDDD;
  253. background: -moz-linear-gradient(top, #ffffff, #dddddd);
  254. background: -webkit-linear-gradient(top, #ffffff, #dddddd);
  255. background: linear-gradient(top, #ffffff, #dddddd);
  256. border: 0 none;
  257. font-size: 16px;
  258. font-family: "微软雅黑";
  259. height: 40px;
  260. line-height: 40px;
  261. padding: 0;
  262. width: 105px;
  263. box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
  264. -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
  265. }

  266. .mainContents {
  267. width: 910px;
  268. margin: 80px auto auto;
  269. }

  270. .menusWrapper {
  271. width: 80px;
  272. height: 318px;
  273. position: relative;
  274. background-color: rgba(0, 0, 0, 0.2);
  275. }

  276. .menusWrapper a {
  277. width: 80px;
  278. height: 35px;
  279. line-height: 35px;
  280. display: block;
  281. text-shadow: 0 0 5px #000000;
  282. text-decoration: none;
  283. font-size: 14px;
  284. }

  285. .menusWrapper a.active {
  286. background: url(../images/menuBg.png) no-repeat;
  287. }

  288. .menusWrapper a:hover {
  289. background-color: #000000;
  290. opacity: 0.8;
  291. filter: alpha(opacity=80);
  292. }

  293. .ctnerWrapper {
  294. margin-left: 100px;
  295. min-height: 318px;
  296. height: auto !important;
  297. height: 318px;
  298. background: linear-gradient(rgba(255, 255, 255, 0.7) 0px, rgba(255, 255, 255, 0.7) 100%) repeat;
  299. background: -moz-linear-gradient(rgba(255, 255, 255, 0.7) 0px, rgba(255, 255, 255, 0.7) 100%) repeat;
  300. background: -webkit-linear-gradient(rgba(255, 255, 255, 0.7) 0px, rgba(255, 255, 255, 0.7) 100%) repeat;
  301. background: -o-linear-gradient(rgba(255, 255, 255, 0.7) 0px, rgba(255, 255, 255, 0.7) 100%) repeat;
  302. }

  303. .ctnerTab {
  304. border-bottom: 1px solid #E8E8E8;
  305. height: 44px;
  306. line-height: 44px;
  307. }

  308. .ctnerTab a {
  309. text-decoration: none;
  310. font-size: 14px;
  311. color: #222;
  312. width: 86px;
  313. height: 44px;
  314. line-height: 44px;
  315. display: inline-block;
  316. }

  317. .ctnerTab a.on {
  318. border-bottom: 2px solid #42A0FE;
  319. font-weight: 700;
  320. }

  321. .ctnerBox {
  322. height: 258px;
  323. }

  324. .cbox {
  325. position: relative;
  326. top: 0;
  327. width: 811px;
  328. }

  329. #cbox-1 {
  330. display: block;
  331. }

  332. .hotNavs {
  333. width: 100%;
  334. display: block;
  335. }

  336. .navTitle {
  337. color: #999999;
  338. height: 81px;
  339. line-height: 16px;
  340. padding: 4px 7px 0 20px;
  341. text-align: left;
  342. width: 20px;
  343. }

  344. .navArea {
  345. margin-left: 50px;
  346. }

  347. .navArea a {
  348. width: 150px;
  349. height: 70px;
  350. float: left;
  351. display: inline-block;
  352. border: 2px solid rgba(248, 248, 248, 0.7);
  353. margin: 0 8px 12px 0;
  354. background: #f8f8f8;
  355. background: linear-gradient(rgba(248, 248, 248, 0.7) 0px, rgba(248, 248, 248, 0.7) 100%) repeat;
  356. background: -moz-linear-gradient(rgba(248, 248, 248, 0.7) 0px, rgba(248, 248, 248, 0.7) 100%) repeat;
  357. background: -webkit-linear-gradient(rgba(248, 248, 248, 0.7) 0px, rgba(248, 248, 248, 0.7) 100%) repeat;
  358. background: -o-linear-gradient(rgba(248, 248, 248, 0.7) 0px, rgba(248, 248, 248, 0.7) 100%) repeat;
  359. }

  360. .navArea a:hover {
  361. border: 2px solid #42A0FE;
  362. }

  363. .sliderBox {
  364. width: 425px;
  365. }

  366. .picLink {
  367. display: none;
  368. width: 425px;
  369. height: 260px;
  370. position: relative;
  371. }

  372. .picLink.active {
  373. display: block;
  374. }

  375. .picTitle {
  376. width: 100%;
  377. padding: 4px 0;
  378. height: 18px;
  379. line-height: 18px;
  380. white-space: nowrap;
  381. text-overflow: ellipsis;
  382. overflow: hidden;
  383. font-size: 14px;
  384. text-indent: 14px;
  385. position: absolute;
  386. bottom: 0;
  387. left: 0;
  388. background-color: #000000;
  389. opacity: 0.4;
  390. filter: alpha(opacity=40);
  391. }

  392. .smallPics {
  393. background-color: #191919;
  394. padding: 8px 0 0 15px;
  395. height: 50px;
  396. overflow: hidden;
  397. position: relative;
  398. white-space: nowrap;
  399. }

  400. .smallPics a {
  401. width: 78px;
  402. cursor: pointer;
  403. transition: opacity 500ms ease 0s;
  404. -webkit-transition: opacity 500ms ease 0s;
  405. -moz-transition: opacity 500ms ease 0s;
  406. opacity: 0.5;
  407. filter: alpha(opacity=50);
  408. text-align: left;
  409. position: relative;
  410. display: inline-block;
  411. }

  412. .smallPics a:hover, .smallPics a.active {
  413. opacity: 1;
  414. filter: alpha(opacity=100);
  415. }

  416. .smallPics a.active img {
  417. border: 1px solid #389CFF;
  418. }

  419. .topic {
  420. margin-left: 445px;
  421. padding-top: 20px;
  422. }

  423. .topicTop {
  424. border-bottom: 1px solid #389CFF;
  425. height: 28px;
  426. line-height: 28px;
  427. position: relative;
  428. }

  429. .titleT {
  430. background-color: rgba(0, 0, 0, 0);
  431. color: #222;
  432. width: 100px;
  433. text-align: center;
  434. height: 28px;
  435. cursor: pointer;
  436. font-size: 14px;
  437. display: inline-block;
  438. }

  439. .titleT a {
  440. color: #222;
  441. }

  442. .titleT.on {
  443. background-color: #389CFF;
  444. }

  445. .titleT.on a {
  446. color: #fff;
  447. }

  448. .titleWords a, .titleTopic a {
  449. text-decoration: none;
  450. }

  451. .changeWords {
  452. color: #222;
  453. position: absolute;
  454. right: 22px;
  455. text-decoration: none;
  456. }

  457. .topicList {
  458. height: 240px;
  459. padding-top: 10px;
  460. width: 349px;
  461. }

  462. .topicList li {
  463. list-style: square inside;
  464. font-size: 6px;
  465. float: left;
  466. height: 30px;
  467. line-height: 30px;
  468. margin-right: 4px;
  469. text-overflow: ellipsis;
  470. white-space: nowrap;
  471. width: 170px;
  472. }

  473. .topicList li a {
  474. font-size: 14px;
  475. color: #222;
  476. text-decoration: none;
  477. }

  478. .topicList li a:hover {
  479. color: #389CFF;
  480. text-decoration: underline;
  481. }

  482. .wBox {
  483. display: block;
  484. }

  485. /* autocomplete */
  486. div.ac {
  487. border: 1px solid #ccc;
  488. position: absolute;
  489. display: none;
  490. overflow: auto;
  491. background-color: #ffffff;
  492. }

  493. div.ac > ul > li {
  494. word-break: break-all;
  495. }

  496. div.ac > ul > li > div {
  497. display: table-row;
  498. width: 100%;
  499. }

  500. div.ac > ul > li > div em {
  501. color: #333;
  502. font-style: normal;
  503. }

  504. div.ac > ul > li.normal {
  505. padding: 2px 0px 2px 5px;
  506. }

  507. div.ac > ul > li.normal > div > span, div.ac > ul > li.iconList > div > span {
  508. display: table-cell;
  509. vertical-align: middle;
  510. color: #333;
  511. }

  512. div.ac > ul > li.iconList {
  513. padding: 0px 0px 0px 2px;
  514. }

  515. div.ac > ul > li.iconList > div > div {
  516. display: table-cell;
  517. vertical-align: middle;
  518. padding-right: 5px;
  519. }

  520. div.ac > ul > li.iconList > div > div > img {
  521. display: table;
  522. display: table-cell \9;
  523. }

  524. div.ac > ul > li.selected {
  525. background-color: #eeeeee;
  526. }
复制代码




这个项目的测试已经在本站开放了,大家可以去测试查看,
测试地址:http://www.52tech.tech/res/52search/





上一篇:2018年传智播客黑马训练营JAVAEE49期培训视频教程百度云盘分享下载
下一篇:2018最新传智Hadoop大数据分析与挖掘视频教程百度云盘下载
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案; 如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子分类或者标题加上【已解决】。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

微信扫一扫

我爱科技论坛(www.52tech.tech)旨在打造全网最大的免费资源共享平台。目前论坛包括考研资料、编程学习、黑科技/科学上网、开源软件等资源模块,竭力服务于正在学习道路上的每一个人。我爱科技论坛,爱科技,更爱分享。致力于营造一个资源丰富、内容完善的大型网络学习交流资源共享平台!

QQ|Archiver|手机版|小黑屋|我爱科技论坛 快乐学习交流

(请勿发布违反中华人民共和国法律法规的言论,会员观点不代表我爱科技论坛的官方立场)

Powered by Discuz! X3.4© 2001-2013 Technology Inc.

返回顶部 返回列表