博客列表 >仿php.cn移动端

仿php.cn移动端

虫先森
虫先森原创
2020年04月12日 17:46:21813浏览

仿php.cn移动端

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <style>
  8. /* 设置全局属性 */
  9. /* 初始化 */
  10. * {
  11. padding: 0;
  12. margin: 0;
  13. }
  14. a {
  15. text-decoration: none;
  16. color: #666;
  17. }
  18. /* 设置可视化区域 */
  19. html {
  20. width: 100vw;
  21. height: 100vh;
  22. font-size: 14px;
  23. }
  24. body {
  25. min-width: 360px;
  26. background-color: #fff;
  27. display: flex;
  28. flex-flow: column nowrap;
  29. align-content: center;
  30. }
  31. .iconfont {
  32. font-family: "iconfont" !important;
  33. font-size: 1.6rem;
  34. font-style: normal;
  35. -webkit-font-smoothing: antialiased;
  36. -moz-osx-font-smoothing: grayscale;
  37. }
  38. body>header {
  39. background-color: #2d353c;
  40. color: white;
  41. height: 30px;
  42. align-items: center;
  43. display: flex;
  44. justify-content: space-between;
  45. align-self: baseline;
  46. padding: 0 10px;
  47. position: fixed;
  48. width: 100%;
  49. }
  50. body>header>.login>img {
  51. width: 20px;
  52. }
  53. body>header>.logo>img {
  54. height: 25px;
  55. }
  56. body>header>span {
  57. width: 20px;
  58. padding-right: 15px;
  59. }
  60. body>.banner>img {
  61. width: 100vw;
  62. padding-top: 30px;
  63. }
  64. .nav {
  65. width: 100vw;
  66. display: flex;
  67. flex-flow: row wrap;
  68. justify-content: space-between;
  69. }
  70. .nav>a {
  71. width: 25vw;
  72. display: flex;
  73. flex-flow: column nowrap;
  74. font-size: 0.8em;
  75. align-items: center;
  76. }
  77. .nav>a>img {
  78. width: 17vw;
  79. padding: 4vw 4vw;
  80. }
  81. .c_tittle {
  82. padding: 2px 2px;
  83. font-size: 1.2em;
  84. color: black;
  85. align-self: start;
  86. }
  87. .v_tittle {
  88. font-size: 1em;
  89. color: black;
  90. }
  91. .abstract {
  92. font-size: 0.8em;
  93. color: slategray;
  94. }
  95. .sign {
  96. border-radius: 3px 3px;
  97. background-color: black;
  98. color: blanchedalmond;
  99. font-size: 0.7em;
  100. padding: 1px 1px;
  101. }
  102. .p_view {
  103. font-size: 0.7em;
  104. }
  105. .more {
  106. width: 95vw;
  107. height: 30px;
  108. margin: 5px;
  109. background-color: #f1f1f1;
  110. box-shadow: 1px 1px 3px rgb(219, 214, 214);
  111. /* border: 1px silver solid; */
  112. text-align: center;
  113. }
  114. .top_course>.container1 {
  115. display: flex;
  116. flex-flow: row nowrap;
  117. align-items: center;
  118. align-content: space-around;
  119. margin: 2px;
  120. }
  121. .top_course>.container1>a>img {
  122. width: 48vw;
  123. padding: 2px 2px;
  124. }
  125. .top_course>.container2 {
  126. display: flex;
  127. flex-flow: column nowrap;
  128. align-items: left;
  129. align-content: space-around;
  130. padding: 2px 2px;
  131. }
  132. .top_course>.container2>a {
  133. display: flex;
  134. flex-flow: row nowrap;
  135. margin: 2px;
  136. background-color: #f4f4f4;
  137. }
  138. .top_course>.container2>a>img {
  139. width: 48vw;
  140. margin-right: 3px;
  141. }
  142. .top_course>.container2>a>div>div {
  143. display: flex;
  144. flex-flow: row nowrap;
  145. align-self: baseline;
  146. padding: 3px 1px;
  147. align-content: space-around;
  148. }
  149. .new_course {
  150. display: flex;
  151. flex-flow: column nowrap;
  152. align-items: left;
  153. align-content: space-around;
  154. padding: 2px 2px;
  155. }
  156. .new_course>a {
  157. display: flex;
  158. flex-flow: row nowrap;
  159. margin: 2px;
  160. background-color: #f4f4f4;
  161. }
  162. .new_course>a>img {
  163. width: 48vw;
  164. margin-right: 3px;
  165. }
  166. .new_course>a>div>div {
  167. display: flex;
  168. flex-flow: row nowrap;
  169. align-self: baseline;
  170. padding: 3px 1px;
  171. align-content: space-around;
  172. }
  173. .new_article {
  174. display: flex;
  175. flex-flow: column nowrap;
  176. align-items: center;
  177. align-content: space-between;
  178. padding: 2px 2px;
  179. }
  180. .new_article>a {
  181. display: flex;
  182. flex-flow: row nowrap;
  183. margin: 2px;
  184. background-color: #f4f4f4;
  185. }
  186. .new_article>a>div {
  187. display: flex;
  188. flex-flow: column nowrap;
  189. align-items: flex-start;
  190. align-content: space-around;
  191. padding: 2px 2px;
  192. width: 70vw;
  193. }
  194. .new_article>a>img {
  195. width: 25vw;
  196. margin-left: 3px;
  197. }
  198. .nex_blog {
  199. display: flex;
  200. flex-flow: column nowrap;
  201. align-items: center;
  202. align-content: space-between;
  203. padding: 2px 2px;
  204. }
  205. .new_blog>a {
  206. display: flex;
  207. flex-flow: row nowrap;
  208. align-items: flex-start;
  209. justify-content: space-between;
  210. margin: 2px;
  211. background-color: #f4f4f4;
  212. padding: 1px 5px 0 2px;
  213. }
  214. .nex_ask {
  215. display: flex;
  216. flex-flow: column nowrap;
  217. align-items: center;
  218. align-content: space-between;
  219. padding: 2px 2px;
  220. }
  221. .new_ask>a {
  222. display: flex;
  223. flex-flow: row nowrap;
  224. align-items: flex-start;
  225. justify-content: space-between;
  226. margin: 2px;
  227. background-color: #f4f4f4;
  228. padding: 1px 5px 0 2px;
  229. }
  230. body>footer {
  231. color: #666;
  232. background-color: #efefef;
  233. border-top: 1px solid #ccc;
  234. height: 55px;
  235. position: fixed;
  236. bottom: 0;
  237. width: 100vw;
  238. display: flex;
  239. flex-flow: row nowrap;
  240. justify-content: space-around;
  241. }
  242. body>footer>a {
  243. margin-top: 10px;
  244. font-size: 0.8rem;
  245. display: flex;
  246. flex-flow: column nowrap;
  247. align-items: center;
  248. }
  249. body>footer>a>span:first-of-type {
  250. font-size: 1.6rem;
  251. }
  252. </style>
  253. </head>
  254. <body>
  255. <!-- 页眉 -->
  256. <header>
  257. <a href="" class="login"><img src="image/login.png" alt=""></a>
  258. <a href="" class="logo"><img src="image/logo.png" alt=""></a>
  259. <span class="iconfont">&#xe6a4;</span>
  260. </header>
  261. <div class="banner">
  262. <img src="image/11.png" alt="" class="banner">
  263. </div>
  264. <!-- 导航 -->
  265. <div class="nav">
  266. <a href=""><img src="image/html.png" alt="HTML/CSS"><span>HTML/CSS</span></a>
  267. <a href=""><img src="image/JavaScript.png" alt="JavaScript"><span>JavaScript</span></a>
  268. <a href=""><img src="image/manual.png" alt="服务器"><span>服务器</span></a>
  269. <a href=""><img src="image/sql.png" alt="数据库"><span>数据库</span></a>
  270. <a href=""><img src="image/app.png" alt="移动端"><span>移动端</span></a>
  271. <a href=""><img src="image/code.png" alt="手册"><span>手册</span></a>
  272. <a href=""><img src="image/tool2.png" alt="工具"><span>工具</span></a>
  273. <a href=""><img src="image/live.png" alt="直播"><span>直播</span></a>
  274. </div>
  275. <!-- 推荐课程区域 -->
  276. <div class="top_course">
  277. <h2 class="c_tittle">推荐课程</h2>
  278. <div class="container1">
  279. <a href=""><img src="image/tjkc1.jpg" alt=""></a>
  280. <a href=""><img src="image/tjkc2.jpg" alt=""></a>
  281. </div>
  282. <div class="container2">
  283. <a href="">
  284. <img src="image/tjkc3.jpg" alt="">
  285. <div class="">
  286. <h2 class="v_tittle">CI框架30分钟极速入门</h2>
  287. <div class="">
  288. <span class="sign">中级</span>
  289. <p class="p_view">61213次播放</p>
  290. </div>
  291. </div>
  292. </a>
  293. <a href="">
  294. <img src="image/tjkc4.jpg" alt="">
  295. <div class="">
  296. <h2 class="v_tittle">2018前端入门_HTML5</h2>
  297. <div class="">
  298. <span class="sign">初级</span>
  299. <p class="p_view">309683次播放</p>
  300. </div>
  301. </div>
  302. </a>
  303. </div>
  304. </div>
  305. <!-- 更新课程 -->
  306. <div class="new_course">
  307. <h2 class="c_tittle">最新更新</h2>
  308. <a href="">
  309. <img src="image/zxkc1.png" alt="">
  310. <div class="">
  311. <h2 class="v_tittle">PHP快速操控Excel之P...</h2>
  312. <p class="abstract">老的PHPExcel已经停止更新了...</p>
  313. <div>
  314. <span class="sign">中级</span>
  315. <p class="p_view">14872次播放</p>
  316. </div>
  317. </div>
  318. </a>
  319. <a href="">
  320. <img src="image/zxkc2.png" alt="">
  321. <div class="">
  322. <h2 class="v_tittle">Thinkphp6.0正式版视...</h2>
  323. <p class="abstract">Thinkphp6.0从2019年10月24日...</p>
  324. <div>
  325. <span class="sign">中级</span>
  326. <p class="p_view">48581次播放</p>
  327. </div>
  328. </div>
  329. </a>
  330. <a href="">
  331. <img src="image/zxkc3.jpg" alt="">
  332. <div class="">
  333. <h2 class="v_tittle">2019python自学视频</h2>
  334. <p class="abstract">本课程适合想从零开始学习Pyth...</p>
  335. <div>
  336. <span class="sign">初级</span>
  337. <p class="p_view">36112次播放</p>
  338. </div>
  339. </div>
  340. </a>
  341. <a href="">
  342. <img src="image/zxkc4.png" alt="">
  343. <div class="">
  344. <h2 class="v_tittle">PHP开发免费公益直播课</h2>
  345. <p class="abstract">主讲:php中文网-朱老师(Peter...</p>
  346. <div>
  347. <span class="sign">初级</span>
  348. <p class="p_view">6795次播放</p>
  349. </div>
  350. </div>
  351. </a>
  352. <a href="">
  353. <img src="image/zxkc5.jpg" alt="">
  354. <div class="">
  355. <h2 class="v_tittle">从零开始到WEB响应...</h2>
  356. <p class="abstract">重点介绍了HTML、CSS、web...</p>
  357. <div>
  358. <span class="sign">初级</span>
  359. <p class="p_view">29009次播放</p>
  360. </div>
  361. </div>
  362. </a>
  363. <a href="">
  364. <img src="image/zxkc6.png" alt="">
  365. <div class="">
  366. <h2 class="v_tittle">PHP文件基础操作</h2>
  367. <p class="abstract">好多同学在PHP基础的时候对PH...</p>
  368. <div>
  369. <span class="sign">中级</span>
  370. <p class="p_view">8926次播放</p>
  371. </div>
  372. </div>
  373. </a>
  374. </div>
  375. <!-- 最新文章 -->
  376. <div class="new_article">
  377. <h2 class="c_tittle">最新文章</h2>
  378. <a href="">
  379. <div class="">
  380. <h2 class="v_tittle">微信引用功能什么意思</h2>
  381. <p class="abstract">发布时间:2020-04-10</p>
  382. </div>
  383. <img src="image/zxwz1.jpg" alt="">
  384. </a>
  385. <a href="">
  386. <div class="">
  387. <h2 class="v_tittle">笔记本电脑滋滋作响怎么解决</h2>
  388. <p class="abstract">发布时间:2020-04-10</p>
  389. </div>
  390. <img src="image/zxwz2.jpg" alt="">
  391. </a>
  392. <a href="">
  393. <div class="">
  394. <h2 class="v_tittle">win7电脑如何调整为最佳性能模式</h2>
  395. <p class="abstract">发布时间:2020-04-10</p>
  396. </div>
  397. <img src="image/zxwz3.jpg" alt="">
  398. </a>
  399. <a href="">
  400. <div class="">
  401. <h2 class="v_tittle">关于java中的强引用与弱引用的介绍</h2>
  402. <p class="abstract">发布时间:2020-04-10</p>
  403. </div>
  404. <img src="image/zxwz4.jpg" alt="">
  405. </a>
  406. <a href="">
  407. <div class="">
  408. <h2 class="v_tittle">win10电脑无法打开wlan怎么解决</h2>
  409. <p class="abstract">发布时间:2020-04-10</p>
  410. </div>
  411. <img src="image/zxwz5.jpg" alt="">
  412. </a>
  413. <div class="more">
  414. <a href="">更多内容</a>
  415. </div>
  416. </div>
  417. <!-- 最新博客 -->
  418. <div class="new_blog">
  419. <h2 class="c_tittle">最新博文</h2>
  420. <a href="">
  421. <h2 class="v_tittle">跟小黑学漏洞利用开发之Window...</h2>
  422. <p class="abstract">2020-4-10</p>
  423. </a>
  424. <a href="">
  425. <h2 class="v_tittle">最新的XSS ByPass代码,跨站脚...</h2>
  426. <p class="abstract">2020-4-10</p>
  427. </a>
  428. <a href="">
  429. <h2 class="v_tittle">Composer windows安装详细介绍</h2>
  430. <p class="abstract">2020-4-10</p>
  431. </a>
  432. <a href="">
  433. <h2 class="v_tittle">AI只能电销机器人源码 源码解读...</h2>
  434. <p class="abstract">2020-4-10</p>
  435. </a>
  436. <a href="">
  437. <h2 class="v_tittle">利用css过滤实现玩网页夜模式适配</h2>
  438. <p class="abstract">2020-4-10</p>
  439. </a>
  440. <div class="more">
  441. <a href="">更多内容</a>
  442. </div>
  443. </div>
  444. <!-- 最新问答 -->
  445. <div class="new_ask">
  446. <h2 class="c_tittle">最新问答</h2>
  447. <a href="">
  448. <h2 class="v_tittle">我访问不了</h2>
  449. <p class="abstract">2020-4-10</p>
  450. </a>
  451. <a href="">
  452. <h2 class="v_tittle">请教一个问题,我想用cut函数把0...</h2>
  453. <p class="abstract">2020-4-10</p>
  454. </a>
  455. <a href="">
  456. <h2 class="v_tittle">验证码输入正确了怎么还提示验证...</h2>
  457. <p class="abstract">2020-4-10</p>
  458. </a>
  459. <a href="">
  460. <h2 class="v_tittle">手册没有下载sdk</h2>
  461. <p class="abstract">2020-4-10</p>
  462. </a>
  463. <a href="">
  464. <h2 class="v_tittle">访问主页后,创建数据库出现错误...</h2>
  465. <p class="abstract">2020-4-9</p>
  466. </a>
  467. <div class="more">
  468. <a href="">更多内容</a>
  469. </div>
  470. </div>
  471. <!-- 页脚 -->
  472. <footer>
  473. <a href=""><span class="iconfont">&#xe8b9;</span><span>首页</span></a>
  474. <a href=""><span class="iconfont">&#xe612;</span><span>视频</span></a>
  475. <a href=""><span class="iconfont">&#xe8b8;</span><span>社区</span></a>
  476. <a href=""><span class="iconfont">&#xe621;</span><span>我的</span></a>
  477. </footer>
  478. <style>
  479. @font-face {
  480. font-family: 'iconfont';
  481. src: url('icon/iconfont.eot');
  482. src: url('icon/iconfont.eot?#iefix') format('embedded-opentype'),
  483. url('icon/iconfont.woff2') format('woff2'),
  484. url('icon/iconfont.woff') format('woff'),
  485. url('icon/iconfont.ttf') format('truetype'),
  486. url('icon/iconfont.svg#iconfont') format('svg');
  487. }
  488. </style>
  489. </body>
  490. </html>
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议