Blogger Information
Blog 20
fans 0
comment 0
visits 8463
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
iframe+css网站管理后台+css选择器的使用
A 管志岗-电商策划
Original
365 people have browsed it

网站管理后台+css选择器的使用

一、网站管理后台cms

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>iframe</title>
  8. </head>
  9. <body>
  10. <!-- nav.target的值和iframe.name的值一样就实现绑定 -->
  11. <header>
  12. <h1>网站管理系统CMS <small>1.1.3</small></h1>
  13. <section>
  14. <em>admin</em>
  15. <button>退出</button>
  16. </section>
  17. </header>
  18. <nav>
  19. <a href="/emmet.html" target="content">emmet</a>
  20. <a href="/dome1.html" target="content">元素必知</a>
  21. <a href="/input_control.html" target="content">input</a>
  22. <a href="/demo5.html" target="content">注册信息</a>
  23. <a href="/dome_biaoti.html" target="content">商品属性</a>
  24. </nav>
  25. <iframe src="/1.md" frameborder="0" name="content"></iframe>
  26. </body>
  27. </html>

效果图

效果图cms

二、css选择器的使用

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>css 属性的选择</title>
  8. <!-- <link rel="stylesheet" href="attribute.css" /> -->
  9. </head>
  10. <body>
  11. <!-- 内部style -->
  12. <h2>Hello, World</h2>
  13. <h2>Hello, China</h2>
  14. <h2>Hello, PHP</h2>
  15. <style>
  16. /* 标签选择器 */
  17. h2 {
  18. color: aqua;
  19. }
  20. </style>
  21. <!-- 内部style 结束-->
  22. <!--
  23. 引入外部css
  24. 1. link head头部标签,可以直接引用,简单的没有更多的前后交互
  25. 2. @import 这个在style内部嵌入,多文件样式比较多的时候可选用
  26. -->
  27. <h3 title="祖国">我们的祖国</h3>
  28. <h3 id="active" class="active">我们的家园</h3>
  29. <h3 class="active3">我们的php学校</h3>
  30. <style>
  31. /* 内部引用 */
  32. @import url(attribute.css);
  33. /* 属性选择器 */
  34. /* h3 这是标签选择器 */
  35. /* h3[title="祖国"] {
  36. color: blue;
  37. } */
  38. /* h3[id="active"] {
  39. color: brown;
  40. } */
  41. /* class 和 id 属于高频属性,css为它设计了语法糖 */
  42. h3[class="active"] {
  43. color: #f40;
  44. }
  45. h3.active3 {
  46. color: rgb(12, 80, 88);
  47. }
  48. </style>
  49. <!-- /* 群组选择器 */ -->
  50. <h1>山东</h1>
  51. <h2>北京</h2>
  52. <h3>德州</h3>
  53. <style>
  54. h1,
  55. h2,
  56. h3 {
  57. color: rgb(23, 83, 161);
  58. }
  59. </style>
  60. </body>
  61. </html>

效果图

css效果图

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:很好,总结的不错,效果实现也很好,继续加油
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!