Blogger Information
Blog 13
fans 0
comment 0
visits 6860
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Emmet语法
云中
Original
391 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. </head>
  9. <body>
  10. <!-- #id 自动生成 id -->
  11. <div id="id"></div>
  12. <!-- p#pid{pID} {}:内容 -->
  13. <p id="pid">pID</p>
  14. <!-- .class 自动生成 class-->
  15. <div class="class"></div>
  16. <!-- p.pclass{p类名} -->
  17. <p class="pclass">p类名</p>
  18. <!-- div>(table>tr*5>td*3>a{导航$})+p{emmet自动生成} -->
  19. <!-- *:重复生成元素 , >:下一层 ,+: 同层 , $ : 自动编号, ():分组 , -->
  20. <div>
  21. <table>
  22. <tr>
  23. <td><a href="">导航1</a></td>
  24. <td><a href="">导航2</a></td>
  25. <td><a href="">导航3</a></td>
  26. </tr>
  27. <tr>
  28. <td><a href="">导航1</a></td>
  29. <td><a href="">导航2</a></td>
  30. <td><a href="">导航3</a></td>
  31. </tr>
  32. <tr>
  33. <td><a href="">导航1</a></td>
  34. <td><a href="">导航2</a></td>
  35. <td><a href="">导航3</a></td>
  36. </tr>
  37. <tr>
  38. <td><a href="">导航1</a></td>
  39. <td><a href="">导航2</a></td>
  40. <td><a href="">导航3</a></td>
  41. </tr>
  42. <tr>
  43. <td><a href="">导航1</a></td>
  44. <td><a href="">导航2</a></td>
  45. <td><a href="">导航3</a></td>
  46. </tr>
  47. </table>
  48. <p>emmet自动生成</p>
  49. </div>
  50. <!-- .div+p -->
  51. <div class="div"></div>
  52. <p></p>
  53. <!-- .div>p{上一层}>a{子元素}^p{父元素层} ^:上层位置 -->
  54. <div class="div">
  55. <p>上一层<a href="">子元素</a></p>
  56. <p>父元素层</p>
  57. </div>
  58. <!-- .div>table>tr.item$*2>td*3{序号$@5} @: 指定从特殊号码开始编号-->
  59. <div class="div">
  60. <table>
  61. <tr class="item1">
  62. <td>序号5</td>
  63. <td>序号6</td>
  64. <td>序号7</td>
  65. </tr>
  66. <tr class="item2">
  67. <td>序号5</td>
  68. <td>序号6</td>
  69. <td>序号7</td>
  70. </tr>
  71. </table>
  72. </div>
  73. <style>
  74. .item1 {
  75. background-color: red;
  76. }
  77. </style>
  78. <!-- div[style] []:属性-->
  79. <div style=""></div>
  80. <!-- .userdata[data-use] data- :自定义属性以 data- 开头 -->
  81. <div class="userdata" data-use="自定义属性">自定义属性</div>
  82. </body>
  83. </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