博客列表 >仿php中文网

仿php中文网

冰雪琉璃
冰雪琉璃原创
2021年06月02日 19:13:12832浏览
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>php中文网</title>
  6. </head>
  7. <body>
  8. <style type="text/css"></style>
  9. <body>
  10. <header>
  11. <div class="logo">
  12. <a href=""><img src="https://www.php.cn/static/images/logo.png" alt=""></a>
  13. </div>
  14. <ul class="navs">
  15. <li>
  16. <a href="">首页</a>
  17. </li>
  18. <li>
  19. <a href="">视频教程</a>
  20. </li>
  21. <li>
  22. <a href="">入门教程</a>
  23. </li>
  24. <li>
  25. <a href="">社区问答</a>
  26. </li>
  27. <li>
  28. <a href="">技术文章</a></li>
  29. <li>
  30. <a href="">资源下载</a></li>
  31. <li>
  32. <a href="">编程词典</a></li>
  33. <li>
  34. <a href="">工具下载</a></li>
  35. </ul>
  36. <div class="reg">
  37. <a href="">注册</a>
  38. <a href="">登录</a>
  39. </div>
  40. </header>
  41. <div class="main-top">
  42. <ul class="menus">
  43. <li>
  44. <a href="">php开发</a>
  45. </li>
  46. <li>
  47. <a href="">前端开发</a>
  48. </li>
  49. <li>
  50. <a href="">服务端开发</a>
  51. </li>
  52. <li>
  53. <a href="">移动开发</a>
  54. </li>
  55. <li>
  56. <a href="">数据库</a>
  57. </li>
  58. <li>
  59. <a href="">服务器运维&下载</a>
  60. </li>
  61. <li>
  62. <a href="">在线工具箱</a>
  63. </li>
  64. <li>
  65. <a href="">常用类库</a>
  66. </li>
  67. </ul>
  68. <ul class="tuijian">
  69. <li>
  70. <a href="">php头条</a>
  71. </li>
  72. <li>
  73. <a href="">独孤九剑</a>
  74. </li>
  75. <li>
  76. <a href="">学习路线</a>
  77. </li>
  78. <li>
  79. <a href="">在线工具</a>
  80. </li>
  81. <li>
  82. <a href="">趣味课堂</a>
  83. </li>
  84. <li>
  85. <a href="">社区问答</a>
  86. </li>
  87. <li>
  88. <a href="">课程直播</a>
  89. </li>
  90. <li>
  91. <input type="text" placeholder="输入关键词搜索">
  92. </li>
  93. </ul>
  94. <div class="slider"><img src="https://img.php.cn/upload/article/000/000/001/5fabba9a8557c153.jpg" alt=""></div>
  95. <ul class="course">
  96. <li>
  97. <a href=""><img src="https://www.php.cn/static/images/index_yunv.jpg" alt=""></a>
  98. </li>
  99. <li>
  100. <a href=""><img src="https://www.php.cn/static/images/index_php_item2_.png?1" alt=""></a>
  101. </li>
  102. <li>
  103. <a href=""><img src="https://www.php.cn/static/images/index_php_item3.jpg?1" alt=""></a>
  104. </li>
  105. <li>
  106. <a href=""><img src="https://www.php.cn/static/images/index_php_new4.jpg?1" alt=""></a>
  107. </li>
  108. </ul>
  109. </div>
  110. <!-- 课程列表 -->
  111. <div class="main-coures">
  112. <h3>&lt;\&gt;PHP入门精品课程&lt;\&gt;</h3>
  113. <ul class="course-list">
  114. <li>
  115. <a href=""><img src="https://www.php.cn/static/images/index_learn_first.jpg" alt=""></a>
  116. </li>
  117. <li>
  118. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  119. <div class="desc">
  120. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  121. </div>
  122. <div class="desc-bottom">
  123. <span>1w次播放</span>
  124. </div>
  125. </a>
  126. </li>
  127. <li>
  128. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  129. <div class="desc">
  130. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  131. </div>
  132. <div class="desc-bottom">
  133. <span>1w次播放</span>
  134. </div>
  135. </a>
  136. </li>
  137. <li>
  138. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  139. <div class="desc">
  140. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  141. </div>
  142. <div class="desc-bottom">
  143. <span>1w次播放</span>
  144. </div>
  145. </a>
  146. </li>
  147. <li>
  148. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  149. <div class="desc">
  150. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  151. </div>
  152. <div class="desc-bottom">
  153. <span>1w次播放</span>
  154. </div>
  155. </a>
  156. </li>
  157. <li>
  158. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  159. <div class="desc">
  160. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  161. </div>
  162. <div class="desc-bottom">
  163. <span>1w次播放</span>
  164. </div>
  165. </a>
  166. </li>
  167. <li>
  168. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  169. <div class="desc">
  170. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  171. </div>
  172. <div class="desc-bottom">
  173. <span>1w次播放</span>
  174. </div>
  175. </a>
  176. </li>
  177. <li>
  178. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  179. <div class="desc">
  180. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  181. </div>
  182. <div class="desc-bottom">
  183. <span>1w次播放</span>
  184. </div>
  185. </a>
  186. </li>
  187. <li>
  188. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  189. <div class="desc">
  190. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  191. </div>
  192. <div class="desc-bottom">
  193. <span>1w次播放</span>
  194. </div>
  195. </a>
  196. </li>
  197. <li>
  198. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  199. <div class="desc">
  200. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  201. </div>
  202. <div class="desc-bottom">
  203. <span>1w次播放</span>
  204. </div>
  205. </a>
  206. </li>
  207. <li>
  208. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  209. <div class="desc">
  210. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  211. </div>
  212. <div class="desc-bottom">
  213. <span>1w次播放</span>
  214. </div>
  215. </a>
  216. </li>
  217. <li>
  218. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  219. <div class="desc">
  220. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  221. </div>
  222. <div class="desc-bottom">
  223. <span>1w次播放</span>
  224. </div>
  225. </a>
  226. </li>
  227. <li>
  228. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  229. <div class="desc">
  230. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  231. </div>
  232. <div class="desc-bottom">
  233. <span>1w次播放</span>
  234. </div>
  235. </a>
  236. </li>
  237. <li>
  238. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  239. <div class="desc">
  240. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  241. </div>
  242. <div class="desc-bottom">
  243. <span>1w次播放</span>
  244. </div>
  245. </a>
  246. </li>
  247. </ul>
  248. </div>
  249. <div class="main-coures">
  250. <h3>&lt;\&gt;PHP进阶课程&lt;\&gt;</h3>
  251. <ul class="course-list">
  252. <li>
  253. <a href=""><img src="https://www.php.cn/static/images/index_learn_middel.jpg" alt=""></a>
  254. </li>
  255. <li>
  256. <a href=""><img src="https://img.php.cn/upload/course/000/000/003/5a530c9c6c775990.jpg" alt="">
  257. <div class="desc">
  258. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  259. </div>
  260. <div class="desc-bottom">
  261. <span>1w次播放</span>
  262. </div>
  263. </a>
  264. </li>
  265. <li>
  266. <a href=""><img src="https://img.php.cn/upload/course/000/000/003/5a530c9c6c775990.jpg" alt="">
  267. <div class="desc">
  268. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  269. </div>
  270. <div class="desc-bottom">
  271. <span>1w次播放</span>
  272. </div>
  273. </a>
  274. </li>
  275. <li>
  276. <a href=""><img src="https://img.php.cn/upload/course/000/000/003/5a530c9c6c775990.jpg" alt="">
  277. <div class="desc">
  278. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  279. </div>
  280. <div class="desc-bottom">
  281. <span>1w次播放</span>
  282. </div>
  283. </a>
  284. </li>
  285. <li>
  286. <a href=""><img src="https://img.php.cn/upload/course/000/000/003/5a530c9c6c775990.jpg" alt="">
  287. <div class="desc">
  288. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  289. </div>
  290. <div class="desc-bottom">
  291. <span>1w次播放</span>
  292. </div>
  293. </a>
  294. </li>
  295. <li>
  296. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  297. <div class="desc">
  298. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  299. </div>
  300. <div class="desc-bottom">
  301. <span>1w次播放</span>
  302. </div>
  303. </a>
  304. </li>
  305. <li>
  306. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  307. <div class="desc">
  308. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  309. </div>
  310. <div class="desc-bottom">
  311. <span>1w次播放</span>
  312. </div>
  313. </a>
  314. </li>
  315. <li>
  316. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  317. <div class="desc">
  318. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  319. </div>
  320. <div class="desc-bottom">
  321. <span>1w次播放</span>
  322. </div>
  323. </a>
  324. </li>
  325. <li>
  326. <a href=""><img src="https://img.php.cn/upload/course/000/000/003/5a530c9c6c775990.jpg" alt="">
  327. <div class="desc">
  328. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  329. </div>
  330. <div class="desc-bottom">
  331. <span>1w次播放</span>
  332. </div>
  333. </a>
  334. </li>
  335. <li>
  336. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  337. <div class="desc">
  338. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  339. </div>
  340. <div class="desc-bottom">
  341. <span>1w次播放</span>
  342. </div>
  343. </a>
  344. </li>
  345. <li>
  346. <a href=""><img src="https://img.php.cn/upload/course/000/000/003/5a530c9c6c775990.jpg" alt="">
  347. <div class="desc">
  348. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  349. </div>
  350. <div class="desc-bottom">
  351. <span>1w次播放</span>
  352. </div>
  353. </a>
  354. </li>
  355. <li>
  356. <a href=""><img src="https://img.php.cn/upload/course/000/000/003/5a530c9c6c775990.jpg" alt="">
  357. <div class="desc">
  358. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  359. </div>
  360. <div class="desc-bottom">
  361. <span>1w次播放</span>
  362. </div>
  363. </a>
  364. </li>
  365. <li>
  366. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  367. <div class="desc">
  368. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  369. </div>
  370. <div class="desc-bottom">
  371. <span>1w次播放</span>
  372. </div>
  373. </a>
  374. </li>
  375. <li>
  376. <a href=""><img src="https://img.php.cn/upload/course/000/000/001/5b63c72c61569244.png" alt="">
  377. <div class="desc">
  378. <h4><i>初级</i>编程学习方法分享直播公益课</h4>
  379. </div>
  380. <div class="desc-bottom">
  381. <span>1w次播放</span>
  382. </div>
  383. </a>
  384. </li>
  385. </ul>
  386. </div>
  387. <footer></footer>
  388. </body>
  389. <style>
  390. * {
  391. margin: 0;
  392. padding: 0;
  393. box-sizing: border-box;
  394. }
  395. body {
  396. background-color: #f3f5f7;
  397. }
  398. li {
  399. list-style: none;
  400. }
  401. a {
  402. color: #444;
  403. text-decoration: none;
  404. }
  405. header {
  406. height: 60px;
  407. background-color: #000;
  408. margin-bottom: 30px;
  409. }
  410. footer {
  411. height: 8em;
  412. background-color: darkgray;
  413. }
  414. .main-top {
  415. height: 510px;
  416. width: 1200px;
  417. background-color: #fff;
  418. display: grid;
  419. grid-template-columns: 200px 1fr;
  420. grid-template-rows: 60px 1fr 120px;
  421. margin: auto;
  422. border-radius: .5em;
  423. }
  424. .main-top ul.menus {
  425. /*设置跨3行*/
  426. grid-area: span 3;
  427. display: grid;
  428. grid-template-rows: repeat(8, 1fr);
  429. background-color: #2b333b;
  430. border-top-left-radius: .5em;
  431. border-bottom-left-radius: .5em;
  432. place-content: center;
  433. padding: 2em;
  434. }
  435. .main-top ul.menus li a {
  436. color: rgba(255, 255, 255, .6);
  437. }
  438. .main-top .tuijian {
  439. display: grid;
  440. grid-template-columns: repeat(7, 100px) 1fr;
  441. place-items: center;
  442. }
  443. .main-top .tuijian li:last-of-type {
  444. place-self: center start;
  445. margin-left: 30px;
  446. }
  447. .main-top .tuijian li:last-of-type input {
  448. outline: none;
  449. background-color: #f1f0f0;
  450. height: 2.5em;
  451. border-radius: .3em;
  452. border: none;
  453. padding: 1em;
  454. }
  455. .main-top .slider {
  456. height: 330px;
  457. }
  458. .main-top .slider img {
  459. width: 100%;
  460. }
  461. .course li img {
  462. width: 100%;
  463. border-radius: .5em;
  464. }
  465. .course {
  466. display: grid;
  467. padding: 10px;
  468. grid-template-columns: repeat(4, 1fr);
  469. gap: 10px;
  470. place-content: center;
  471. margin-top: 10px;
  472. }
  473. header {
  474. overflow: hidden;
  475. }
  476. header .logo {
  477. height: 60px;
  478. float: left;
  479. }
  480. header .navs {
  481. float: left;
  482. }
  483. header .navs li {
  484. float: left;
  485. height: 60px;
  486. line-height: 60px;
  487. padding: 0 20px;
  488. margin: 0 10px;
  489. }
  490. header a {
  491. color: rgba(255, 255, 255, .7)
  492. }
  493. header .reg {
  494. float: right;
  495. height: 60px;
  496. line-height: 60px;
  497. }
  498. /* 课程列表 */
  499. .main-coures {
  500. width: 1200px;
  501. height: 646px;
  502. padding: 15px;
  503. background-color: #FFF;
  504. border-radius: 10px;
  505. margin: 30px auto;
  506. display: grid;
  507. grid-template-rows: 50px 1fr;
  508. }
  509. .main-coures h3 {
  510. text-align: center;
  511. color: #444;
  512. }
  513. .main-coures .course-list {
  514. display: grid;
  515. grid-template-columns: repeat(5, 1fr);
  516. grid-template-rows: repeat(3, 1fr);
  517. gap: 10px;
  518. }
  519. .main-coures .course-list img {
  520. width: 100%;
  521. }
  522. .main-coures .course-list li:first-of-type {
  523. grid-area: span 2;
  524. }
  525. .main-coures .course-list li {
  526. position: relative;
  527. border-radius: 10px;
  528. }
  529. .main-coures .course-list li img {
  530. border-radius: 10px;
  531. }
  532. .desc {
  533. background-color: #fff;
  534. height: 38px;
  535. width: 100%;
  536. position: absolute;
  537. bottom: 45px;
  538. left: 0;
  539. right: 0;
  540. border-top-right-radius: 10px;
  541. border-top-left-radius: 10px;
  542. transition: .5s;
  543. }
  544. .main-coures .course-list a:hover .desc {
  545. height: 100px;
  546. right: 0;
  547. left: 0;
  548. }
  549. .desc-bottom {
  550. position: absolute;
  551. left: 0;
  552. right: 0;
  553. background-color: #fff;
  554. padding: 10px 0;
  555. width: 100%;
  556. height: 42px;
  557. background-color: #fff;
  558. color: #93999f;
  559. font-size: 12px;
  560. line-height: 36px;
  561. border-bottom-left-radius: 10px;
  562. border-bottom-right-radius: 10px;
  563. }
  564. .desc i {
  565. padding: 2px;
  566. font-style: normal;
  567. font-size: 12px;
  568. color: #fff;
  569. line-height: 12px;
  570. border-radius: 5px;
  571. background-color:#93999f;
  572. margin-left: 5px;
  573. }
  574. </style>
  575. </body>
  576. </html>

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议