Blogger Information
Blog 5
fans 0
comment 0
visits 5016
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
iframe小案例:实现CSS标签,属性选择器, 以及群组选择器的使用场景
布道者PHP学习笔记
Original
465 people have browsed it
  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. <style>
  9. /* 标签选择器 */
  10. nav a {
  11. font-size: 16px;
  12. color: black;
  13. font-weight: bold;
  14. }
  15. /* 属性选择器 */
  16. nav a.index {
  17. color: orangered;
  18. }
  19. /* 群组选择器 */
  20. nav a.download,
  21. nav a.technique,
  22. nav a.community {
  23. color: green;
  24. }
  25. nav a:hover {
  26. font-size: 1.01em;
  27. color: orangered;
  28. }
  29. iframe {
  30. width: 100%;
  31. height: 600px;
  32. border: none;
  33. background-color: #efefef;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <nav>
  39. <a href="demo1.html" target="content" class="index">首页</a>
  40. <a href="demo2.html" target="content" class="video">视频教程</a>
  41. <a href="demo3.html" target="content" class="study">学习路径</a>
  42. <a href="demo4.html" target="content" class="php">PHP培训</a>
  43. <a href="demo5.html" target="content" class="download">资源下载</a>
  44. <a href="demo6.html" target="content" class="technique">技术文章</a>
  45. <a href="demo7.html" target="content" class="community">社区</a>
  46. </nav>
  47. <iframe src="demo1.html" name="content"></iframe>
  48. </body>
  49. </html>

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