Blogger Information
Blog 39
fans 0
comment 0
visits 30675
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
CCS3:PHP中文网移动版
Original
755 people have browsed it

总结:
这次编程序花了整天两天时间,虽然效果一般,但收获挺多,发现自己存在许多问题,好好总结。
1.HTML5和CSS3基础很重要,没有以上坚实基础,影响弹性盒子应用的发挥。
2.老师课堂教的知识要一边看回访一边记住要点,重新整理笔记。
3.希望老师提供下次课花点时间讲些本次作业的要点。最后提供本次样板或者其他优秀的作业,让我多读多看。

演示效果:

PHP中文网移动版

  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. <link rel="stylesheet" href="static/css/font-icon.css">
  7. <title>PHP中文网(手机高仿版)</title>
  8. <style>
  9. /* 初始化 */
  10. *{
  11. margin: 0;
  12. padding: 0;
  13. }
  14. html{
  15. width: 100vw;
  16. height: 100vh;
  17. font-size: 14px;
  18. }
  19. body{
  20. min-width: 360px;
  21. /* width: 360px; */
  22. background-color:#fff;
  23. display: flex;
  24. flex-flow: column nowrap;
  25. }
  26. a{
  27. /* 所有的链接文字取消下划线,字体为灰色 */
  28. text-decoration: none;
  29. color: #666;
  30. }
  31. .more{
  32. /* 所有的“更多内容”居中 */
  33. text-align: center;
  34. width: 700px;
  35. }
  36. /* 页眉 */
  37. span{
  38. color: #efefef;
  39. }
  40. body>header{
  41. background-color: #333;
  42. color: white;
  43. display: flex;
  44. align-items: center;
  45. justify-content: space-between;
  46. width: 700px;
  47. height: 40px;
  48. padding: 0 15px;
  49. position: fixed;
  50. }
  51. /* 横幅广告 */
  52. .slide{
  53. height: 330px;
  54. }
  55. .slide>img{
  56. width:730px;
  57. }
  58. /* 导航区 */
  59. nav{
  60. height: 200px;
  61. width: 700px;
  62. /* 变成多行容器 */
  63. display: flex;
  64. flex-flow: row wrap;
  65. }
  66. nav>div{
  67. /* 占宽度四分之一 */
  68. width: 175px;
  69. display: flex;
  70. flex-flow: column nowrap;
  71. text-align: center;
  72. align-items: center;
  73. }
  74. nav>div img{
  75. width: 60%;
  76. }
  77. /* 推荐课程 */
  78. h2{
  79. background-color:lightgray;
  80. height: 40px;
  81. width: 730px;
  82. padding-top: 10px;
  83. }
  84. .good-course{
  85. width: 700px;
  86. display: flex;
  87. flex-flow: row nowrap;
  88. justify-content: flex-start;
  89. margin-right: 10px;
  90. }
  91. .good-course img{
  92. width: 350px;
  93. margin-right: 20px;
  94. }
  95. .good-course1{
  96. width: 1356px;
  97. display: flex;
  98. justify-content: flex-start;
  99. }
  100. .good-course1 img{
  101. width: 350px;
  102. }
  103. .good-course1>a{
  104. width: 400px;
  105. }
  106. /* 最新更新 */
  107. .update{
  108. width: 700px;
  109. display: flex;
  110. flex-flow: column nowrap;
  111. }
  112. .new{
  113. display: flex;
  114. }
  115. /* 图片统一尺寸 */
  116. .new img{
  117. width: 450px;
  118. }
  119. /* 最新文章 */
  120. .article{
  121. display: flex;
  122. flex-flow: column nowrap;
  123. width: 700px;
  124. }
  125. .paper{
  126. display: flex;
  127. justify-content: flex-end;
  128. }
  129. .article img{
  130. width: 450px;
  131. }
  132. /* 最新博文 */
  133. .bw{
  134. display: flex;
  135. justify-content: space-between;
  136. width: 700px;
  137. }
  138. .bw>a{
  139. margin: 10px;
  140. padding: 5px;
  141. border: 1px;
  142. box-shadow: lightgrey;
  143. }
  144. /* 最新问答 */
  145. .newanswer{
  146. display: flex;
  147. flex-flow: column;
  148. height: 350px;
  149. }
  150. .answer{
  151. display: flex;
  152. justify-content: space-between;
  153. width: 700px;
  154. height: 50px;
  155. }
  156. /* 页脚 */
  157. footer{
  158. display: flex;
  159. flex-flow: row nowrap;
  160. width: 700px;
  161. height: 50px;
  162. justify-content: space-around;
  163. /* 固定底部横条 */
  164. position: fixed;
  165. bottom: 0;
  166. color: #666;
  167. background-color: #efefef;
  168. border-top: 1px solid #ccc;
  169. }
  170. footer>div{
  171. display: flex;
  172. flex-flow: column wrap;
  173. }
  174. footer>div>span{
  175. width: 100px;
  176. /* height: 100px; */
  177. color: red;
  178. }
  179. </style>
  180. </head>
  181. <body>
  182. <!-- 页眉 -->
  183. <header>
  184. <a href="">微博 </a>
  185. <a href="">PHP中文网</a>
  186. <span class="iconfont"></span>
  187. </header>
  188. <!-- 横幅广告 -->
  189. <div class="slide">
  190. <img src="static/images/11.png" alt="">
  191. </div>
  192. <!-- 导航 -->
  193. <nav>
  194. <div>
  195. <a href=""><img src="static/images/html.png" alt=""></a>
  196. <a href="">HTML/CSS</a>
  197. </div>
  198. <div>
  199. <a href=""><img src="static/images/JavaScript.png" alt=""></a>
  200. <a href="">JavaScript</a>
  201. </div>
  202. <div>
  203. <a href=""><img src="static/images/code.png" alt=""></a>
  204. <a href="">服务端</a>
  205. </div>
  206. <div>
  207. <a href=""><img src="static/images/sql.png" alt=""></a>
  208. <a href="">数据库</a>
  209. </div>
  210. <div>
  211. <a href=""><img src="static/images/app.png" alt=""></a>
  212. <a href="">移动端</a>
  213. </div>
  214. <div>
  215. <a href=""><img src="static/images/manual.png" alt=""></a>
  216. <a href="">手册</a>
  217. </div>
  218. <div>
  219. <a href=""><img src="static/images/tool2.png" alt=""></a>
  220. <a href="">工具</a>
  221. </div>
  222. <div>
  223. <a href=""><img src="static/images/live.png" alt=""></a>
  224. <a href="">直播</a>
  225. </div>
  226. </nav>
  227. <!-- 推荐课程 -->
  228. <br>
  229. <h2>推荐课程</h2>
  230. <div class="good-course">
  231. <a href="" class="image1"><img src="static/images/3-1.jpg" alt=""></a>
  232. <a href="" class="image1"><img src="static/images/3-2.jpg" alt=""></a>
  233. </div>
  234. <div class="good-course1">
  235. <a href=""><img src="static/images/cou1.jpg" alt=""></a>
  236. <div>
  237. <a href=""><h3>CI框架30分钟极速入门</h3></a>
  238. <p>中级 61279次播放</p>
  239. </div>
  240. </div>
  241. <div class="good-course1">
  242. <a href=""><img src="static/images/cou2.jpg" alt=""></a>
  243. <div>
  244. <a href=""><h3>2018前端入门_HTML5</h3></a>
  245. <p>初级 310441次播放</p>
  246. </div>
  247. </div>
  248. <!-- 最新更新 -->
  249. <h2>最新更新</h2>
  250. <div class="update">
  251. <div class="new">
  252. <a href=""><img src="static/images/n1.png" alt=""></a>
  253. <a href=""><h3>PHP快速操控Excel之PhpSpreadsheet</h3></a>
  254. <p>老的PHPExcel已经停止更新了!目前最新的是使用phpOffice插件PhpSpreadsheet</p>
  255. </div>
  256. <div class="new">
  257. <a href=""><img src="static/images/n2.png" alt=""></a>
  258. <a href=""><h3>Thinkphp6.0正式版视频教程 </h3></a>
  259. <p>Thinkphp6.0从2019年10月24日正式发布,相对测试版,有很多变动,目前TP6已经</p>
  260. </div>
  261. <div class="new">
  262. <a href=""><img src="static/images/n3.png" alt=""></a>
  263. <a href=""><h3>2019python自学视频</h3></a>
  264. <p>本课程适合想从零开始学习 Python 编程语言的开发人员。由浅入深的带你进入</p>
  265. </div>
  266. <div class="new">
  267. <a href=""><img src="static/images/n4.png" alt=""></a>
  268. <a href=""><h3>PHP开发免费公益直播课</h3></a>
  269. <p>主讲:php中文网-朱老师( Peter Zhu) 时间:2019.10.17 晚 20:00-22:00 主题</p>
  270. </div>
  271. <div class="new">
  272. <a href=""><img src="static/images/n5.png" alt=""></a>
  273. <a href=""><h3>从零开始到WEB响应式布局</h3></a>
  274. <p>重点介绍了HTML、CSS、web布局前端核心技术,通过视频讲解,了解可以利</p>
  275. </div>
  276. <div class="new">
  277. <a href=""><img src="static/images/n6.png" alt=""></a>
  278. <a href=""><h3>PHP文件基础操作</h3></a>
  279. <p>好多同学在PHP基础的时候对PHP文件的操作了解的不够多,本节课就带着大家</p>
  280. </div>
  281. </div>
  282. <!-- 最新文章 -->
  283. <h2>最新文章</h2>
  284. <div class="article">
  285. <div class="paper">
  286. <a href=""><p>电脑开机出现windows错误恢复怎么办</p>
  287. <p>发布时间:2020-04-12</p> </a>
  288. <a href=""><img src="static/images/p1.jpg" alt=""></a>
  289. </div>
  290. <div class="paper">
  291. <a href=""><p>win7系统与游戏不兼容怎么办</p>
  292. <p>发布时间:2020-04-12</p> </a>
  293. <a href=""><img src="static/images/p2.jpg" alt=""></a>
  294. </div>
  295. <div class="paper">
  296. <a href=""><p>公众号长图怎么无缝排版</p>
  297. <p>发布时间:2020-04-12</p> </a>
  298. <a href=""><img src="static/images/p3.jpg" alt=""></a>
  299. </div>
  300. <div class="paper">
  301. <a href=""><p>ps钢笔压力前面有感叹号怎么解决</p>
  302. <p>发布时间:2020-04-12</p> </a>
  303. <a href=""><img src="static/images/p4.jpg" alt=""></a>
  304. </div>
  305. <div class="paper">
  306. <a href=""><p>能打开rar文件的应用是什么</p>
  307. <p>发布时间:2020-04-12</p> </a>
  308. <a href=""><img src="static/images/p5.jpg" alt=""></a>
  309. </div>
  310. </div>
  311. <a href="" class="more">更多内容</a>
  312. <!-- 最新博文 -->
  313. <h2>最新博文</h2>
  314. <div class="bw">
  315. <a href="">CSS3:弹性盒子flex布局</a>
  316. <a href="">2020-04-12</a>
  317. </div>
  318. <div class="bw">
  319. <a href="">Jquery+AJAX上传文件,无刷新上传并重命名文件</a>
  320. <a href="">2020-04-11</a>
  321. </div>
  322. <div class="bw">
  323. <a href="">thinkphp5.6源码阅读1</a>
  324. <a href="">2020-04-11</a>
  325. </div>
  326. <div class="bw">
  327. <a href="">Composer windows安装详细介绍</a>
  328. <a href="">2020-04-10</a>
  329. </div>
  330. <div class="bw">
  331. <a href="">AI智能电销机器人源码 源码解读(1)—基础</a>
  332. <a href="">2020-04-10</a>
  333. </div>
  334. <a href="" class="more">更多内容</a>
  335. <!-- 最新问答 -->
  336. <h2>最新问答</h2>
  337. <div class="newanswer">
  338. <div class="answer">
  339. <a href="">不出现tp6.0页面</a>
  340. <a href="">2020-04-12</a>
  341. </div>
  342. <div class="answer">
  343. <a href="">数据库密码··</a>
  344. <a href="">2020-04-12</a>
  345. </div>
  346. <div class="answer">
  347. <a href="">制定的学习计划在哪能找到 咋找不到呢?</a>
  348. <a href="">2020-04-11</a>
  349. </div>
  350. <div class="answer">
  351. <a href="">数据库链接后怎么知道用哪个表啊</a>
  352. <a href="">2020-04-11</a>
  353. </div>
  354. <div class="answer">
  355. <a href="">这个同步的东西</a>
  356. <a href="">2020-04-11</a>
  357. </div>
  358. <div class="answer">
  359. <a href="" class="more">更多内容</a>
  360. </div>
  361. </div>
  362. <!-- 页脚 -->
  363. <footer>
  364. <div>
  365. <span></span>
  366. <a href="">首页</a>
  367. </div>
  368. <div>
  369. <span></span>
  370. <a href="">视频</a>
  371. </div>
  372. <div>
  373. <span></span>
  374. <a href="">社区</a>
  375. </div>
  376. <div>
  377. <span></span>
  378. <a href="">我的</a>
  379. </div>
  380. </footer>
  381. </body>
  382. </html>
Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:每个人基础不同, 2天做出来也还好了, 关键是你动手去做了, 可能在做之前, 你觉得二小时就行, 真动手就知道, 没那么简单
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post