Blogger Information
Blog 19
fans 0
comment 1
visits 7435
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1021作业
移动用户-4050479
Original
274 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>Document</title>
  8. <style type="text/css">
  9. /*
  10. *even =>2n
  11. *odd => 2n+1
  12. */
  13. .ul li:nth-of-type(odd){
  14. background-color: chocolate;
  15. }
  16. .ul li:nth-of-type(even):hover {
  17. background-color: aquamarine;
  18. cursor: pointer;
  19. }
  20. .lv li:nth-last-child(-n +3) {
  21. background-color: rebeccapurple;
  22. }
  23. .lv li:nth-last-of-type(5){
  24. background-color: blue;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div class="ul">
  30. <li class="li">bbc1</li>
  31. <li class="li">bbc2</li>
  32. <li class="li">bbc3</li>
  33. <li class="li">bbc4</li>
  34. <li class="li">bbc5</li>
  35. <li class="li">bbc6</li>
  36. <li class="li">bbc7</li>
  37. <li class="li">bbc8</li>
  38. </div>
  39. <div>
  40. <ul class="lv">
  41. <li class="li">evn1</li>
  42. <li class="li">evn2</li>
  43. <li class="li">evn3</li>
  44. <li class="li">evn4</li>
  45. <li class="li">evn5</li>
  46. <li class="li">evn6</li>
  47. <li class="li">evn7</li>
  48. <li class="li">evn8</li>
  49. </ul>
  50. </div>
  51. </body>
  52. </html> -->
  53. <!DOCTYPE html>
  54. <html lang="en">
  55. <head>
  56. <meta charset="UTF-8">
  57. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  58. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  59. <title>Document</title>
  60. <style>
  61. :enabled 匹配可编辑的表单
  62. :disabled 匹配被禁用的表单
  63. :checked 匹配被选中的表单
  64. :focus 匹配获焦的表单
  65. input[type="checkbox"] {
  66. display: *none;
  67. }
  68. input[type="checkbox"] + ul {
  69. display: none;
  70. }
  71. input[type="checkbox"]:checked + ul {
  72. display: block;
  73. }
  74. input[type="text"]:disabled {
  75. background-color: brown;
  76. }
  77. input:focus{
  78. background-color: aqua;
  79. }
  80. </style>
  81. </head>
  82. <body>
  83. <div>
  84. <fieldset>
  85. <legend>用户注册</legend>
  86. <label for="vc">点我!!!!</label>
  87. <input type="checkbox" name="vc" id="vc">
  88. <ul>
  89. <li class="mmo">mmo8</li>
  90. <li class="mmo">mmo9</li>
  91. <li class="mmo">mmo10</li>
  92. <li class="mmo">mmo11</li>
  93. <li class="mmo">mmo12</li>
  94. <li class="mmo">mmo13</li>
  95. <li class="mmo">mmo14</li>
  96. <li class="mmo">mmo15</li>
  97. <li class="mmo">mmo16</li>
  98. </ul><br>
  99. <input type="text" disabled>
  100. <br>
  101. <input type="text" >
  102. <br>
  103. <input type="checkbox" name="" id="">
  104. </fieldset>
  105. </div>
  106. <p>padding 规则</p>
  107. 四值: 上, 右, 下, 左
  108. padding: 5px 10px 15px 20px;
  109. 三值: 上, 左右, 下
  110. padding: 5px 10px 15px;
  111. 双值: 上下, 左右
  112. padding: 5px 10px;
  113. 单值: 上下左中全相等
  114. padding: 10px;
  115. 三值,双值记忆方法: 只要出现在第二个参数位置上就代表"左右"
  116. margin 和 padding 是一样的
  117. <span style="color:red;"> border 是不存在以上的简化缩写</span>
  118. </body>
  119. </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