Blogger Information
Blog 19
fans 0
comment 0
visits 10762
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
iframe实战练习
牙森江
Original
298 people have browsed it

今天的iframe实战练习

  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>实战练习-后台小案例</title>
  8. <style>
  9. *{
  10. margin: 0px;
  11. padding: 0px;
  12. box-sizing: border-box;
  13. }
  14. body{
  15. display: grid;
  16. }
  17. header{
  18. width: 100%;
  19. height: 160px;
  20. background-color: aqua;
  21. display: flex;
  22. place-items: center;
  23. }
  24. header h1{
  25. color: brown;
  26. margin-left: 20px;
  27. }
  28. header section{
  29. display: flex;
  30. margin-left: auto;
  31. }
  32. header span{
  33. margin-right: 20px;
  34. }
  35. header button{
  36. margin-right: 20px;
  37. }
  38. nav{
  39. background-color: rgb(235, 20, 20);
  40. display: grid;
  41. width: 15%;
  42. text-align: center;
  43. margin-top : 5px;
  44. }
  45. a{
  46. text-decoration: none;
  47. }
  48. iframe{
  49. margin-top: 5px;
  50. width: 70%;
  51. height: 100%;
  52. background-color: rgb(142, 178, 245);
  53. }
  54. </style>
  55. </head>
  56. <body>
  57. <!-- 后台顶部 -->
  58. <header>
  59. <h1>学生管理系统</h1>
  60. <section>
  61. <span>admin</span>
  62. <button>退出</button>
  63. </section>
  64. </header>
  65. <!-- 后台左侧 -->
  66. <nav>
  67. <a href="./表单-实战练习.html" target="content">登录页面</a>
  68. <a href="实战-课程表.html" target="content">课程表</a>
  69. <a href="./iframe+a.html" target="content">iframe练习</a>
  70. <a href="./购物清单.html" target="content">购物清单</a>
  71. <a href="" target="content">元素属性</a>
  72. <a href="" target="content">元素属性</a>
  73. <a href="" target="content">元素属性</a>
  74. <a href="" target="content">元素属性</a>
  75. </nav>
  76. <!-- 后台右侧 -->
  77. <iframe src="" frameborder="0" name="content" width="100%" height="100%"></iframe>
  78. </body>
  79. </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