Blogger Information
Blog 29
fans 0
comment 0
visits 19631
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
我是怎样的我自己?
牡丹飞
Original
547 people have browsed it

1 效果



2 代码


  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>当快乐装进盒子</title>
  7. <style>
  8. h1 {
  9. border: 1em solid violet;
  10. border-left: 2em solid violet;
  11. border-right: 2em solid violet;
  12. border-bottom: 3em solid violet;
  13. border-radius: 1em;
  14. text-align: center;
  15. }
  16. h1 {
  17. font-size: 16px;
  18. }
  19. header p {
  20. box-sizing: border-box;
  21. padding-top: 1em;
  22. padding-bottom: 2em;
  23. border: thistle 0.1em solid;
  24. color: #fff;
  25. background-color: black;
  26. text-align: center;
  27. line-height: 1.8em;
  28. }
  29. main {
  30. height: 12em;
  31. }
  32. footer p {
  33. box-sizing: border-box;
  34. border: yellowgreen 1em solid;
  35. text-align: center;
  36. color: #fff;
  37. background-color: yellowgreen;
  38. text-decoration: underline;
  39. font-weight: bold;
  40. border-bottom-left-radius: 1em;
  41. border-bottom-right-radius: 1em;
  42. }
  43. .box {
  44. box-sizing: border-box;
  45. margin-top: 0.5em;
  46. width: 10em;
  47. height: 1.5em;
  48. background-color: chartreuse;
  49. text-align: center;
  50. }
  51. .right {
  52. position: relative;
  53. top: -12.47em;
  54. left: 12em;
  55. }
  56. .box-row {
  57. width: 25em;
  58. height: 1.5em;
  59. margin-top: 1em;
  60. box-sizing: content-box;
  61. background-color: aquamarine;
  62. color: #fff;
  63. }
  64. .box-sub {
  65. margin-top: 0em;
  66. height: 1.4em;
  67. }
  68. .box-sub-right {
  69. position: relative;
  70. top: -2.4em;
  71. left: 11em;
  72. width: 14em;
  73. /* width: auto; */
  74. }
  75. </style>
  76. </head>
  77. <body>
  78. <header>
  79. <h1>当快乐装进盒子</h1>
  80. <h1>人生就有了弹性</h1>
  81. <p>
  82. 如果朱老师的盒子是最好的盒子,<br />
  83. 我们就有了方向。<br />
  84. 如果朱老师还告诉了我们很多很好的盒子,<br />
  85. 我们会有很多幸福的可能性!
  86. </p>
  87. </header>
  88. <main>
  89. <section class="left">
  90. <div class="box"><p>元素</p></div>
  91. <div class="box"><p></p></div>
  92. <div class="box"><p>ID</p></div>
  93. <div class="box"><p>!important</p></div>
  94. <div class="box"><p>脚本</p></div>
  95. </section>
  96. <section class="right">
  97. <div class="box box-row">
  98. <div class="box box-sub"><p style="color: red">朱老师说话很亲切</p></div>
  99. <div class="box box-sub box-sub-right">
  100. <p style="color: rebeccapurple">听着感觉自己在写代码</p>
  101. </div>
  102. </div>
  103. <div class="box box-row">
  104. <div class="box box-sub"><p style="color: red">朱老师讲的很深入</p></div>
  105. <div class="box box-sub box-sub-right"><p style="color: rebeccapurple">从值到规则集生动鲜活</p></div>
  106. </div>
  107. <div class="box box-row">
  108. <div class="box box-sub"><p style="color: red">朱老师不愧是朱老师</p></div>
  109. <div class="box box-sub box-sub-right"><p style="color: rebeccapurple">业内佼佼者我们的好榜样</p></div>
  110. </div>
  111. <div class="box box-row">
  112. <div class="box box-sub"><p style="color: red">朱老师在挑战自己</p></div>
  113. <div class="box box-sub box-sub-right"><p style="color: rebeccapurple">从传统讲法升级成实例讲法</p></div>
  114. </div>
  115. <div class="box box-row">
  116. <div class="box box-sub"><p style="color: red">朱老师写给我们看</p></div>
  117. <div class="box box-sub box-sub-right"><p style="color: rebeccapurple">希望桃李的芬芳到处是足迹</p></div>
  118. </div>
  119. </section>
  120. </main>
  121. <footer>
  122. <p>我是怎样的我自己?</p>
  123. </footer>
  124. </body>
  125. </html>

3 总结


进入代码中感觉很是幸福,回到生活中发现,美是一样的。

CSS 等于 生活
元素 === 五官
=== 职业
id === 能力
重要 === 感情
脚本 === 人生

Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:边框不要用em了, 下次注意
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