Blogger Information
Blog 20
fans 0
comment 0
visits 8631
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Emmet 的八种用法
A 管志岗-电商策划
Original
294 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>Html是结构化标签语言</title>
  8. </head>
  9. <body>
  10. <!-- 1. 标签与内容:'{text}' -->
  11. <h3>Html是结构化标签语言</h3>
  12. <div class="title">默认标签div</div>
  13. <hr>
  14. <!-- 2. 属性和语法糖:`[attr]` -->
  15. <!-- [id=app]{app} -->
  16. <div id="app">app</div>
  17. <!-- [class=title]{title} -->
  18. <div class="title">title</div>
  19. <!-- id,class是高频,通用属性,emmet为它定制了“语法糖” -->
  20. <!-- `id ==> #, class ==> .` -->
  21. <!-- #app{app} -->
  22. <div id="app">app</div>
  23. <!-- .class{title} -->
  24. <div class="class">title</div>
  25. <hr>
  26. <!-- 3. 重复:'*' -->
  27. <!-- .container{title}*3 -->
  28. <div class="container">title</div>
  29. <div class="container">title</div>
  30. <div class="container">title</div>
  31. <hr>
  32. <!-- 4. 父子:`>` -->
  33. <!-- ul>li{item}*3 -->
  34. <ul>
  35. <li>item</li>
  36. <li>item</li>
  37. <li>item</li>
  38. </ul>
  39. <!-- 5. 兄弟关系 -->
  40. <h3>标题</h3>
  41. <p>内容</p>
  42. <!-- h3{标题}+p{内容} -->
  43. <h3>标题</h3>
  44. <p>内容</p>
  45. <hr>
  46. <!-- 6. 父级 -->
  47. <!-- .box>span{text}^h3{小标题} -->
  48. <div class="box"><span>text</span></div>
  49. <h3>小标题</h3>
  50. <hr>
  51. <!-- 7. 分组:`(...)` -->
  52. <nav>
  53. <h3>导航</h3>
  54. <ul>
  55. <li><a href="">like</a></li>
  56. <li><a href="">like</a></li>
  57. <li><a href="">like</a></li>
  58. </ul>
  59. </nav>
  60. <!-- nav>h3+ul>li*3>a{like} -->
  61. <!-- nav>h3+(ul>li*3>a{like}) 不能tab生成 -->
  62. nav>h3+(ul>li*3>a{like})
  63. nav>h3+ul>li*3>a{like
  64. <nav>
  65. <h3></h3>
  66. <ul>
  67. <li><a href="">like</a></li>
  68. <li><a href="">like</a></li>
  69. <li><a href="">like</a></li>
  70. </ul>
  71. </nav>
  72. <hr>
  73. <!-- 8. 序号:`$` ,`$@` -->
  74. <ul>
  75. <li>item-1</li>
  76. <li>item-2</li>
  77. <li>item-3</li>
  78. </ul>
  79. <!-- 默认是$@1 ul>li{item-$}*3 -->
  80. <ul>
  81. <li>item-1</li>
  82. <li>item-2</li>
  83. <li>item-3</li>
  84. </ul>
  85. <!-- 自定义起始 ul>li{item-$@6}*3 -->
  86. <ul>
  87. <li>item-6</li>
  88. <li>item-7</li>
  89. <li>item-8</li>
  90. </ul>
  91. <!-- ul>li{item-$@-6}*3 倒叙-->
  92. <ul>
  93. <li>item-8</li>
  94. <li>item-7</li>
  95. <li>item-6</li>
  96. </ul>
  97. </body>
  98. </html>

  1. ## 总结遇到的问题
  2. nav>h3+ul>li*3>a{like}
  3. nav>h3+(ul>li*3>a{like}) 不能tab生成
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