Blogger Information
Blog 9
fans 0
comment 0
visits 5628
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
emmet语法,快速生成使用方法
Original
433 people have browsed it

emmet语法的使用方法

  1. 快速生成HTML结构标签:
    <kbd>!</kbd>+<kbd>Tab</kbd>或html:h5+<kbd>Tab</kbd>
  2. 快速生成DIV标签:
    div+<kbd>Tab</kbd>
  3. 快速生成带class属性DIV标签:
    .ID+<kbd>Tab</kbd>
    1. <div class="id"></div>
  4. 生成DIV标签中有id属性:
    #test+<kbd>Tab</kbd>
    1. <div id="test"></div>
  5. DIV标签带clsaa元素、id属性、文字内容:
    .test#name{名称}+<kbd>Tab</kbd>
    1. <div class="test" id="name">名称</div>
  6. 父子关系emmet方法:
    div>li+<kbd>Tab</kbd>
    1. <div>
    2. <li></li>
    3. </div>
  7. 兄弟关系:div+li+<kbd>Tab</kbd>
    1. <div></div>
    2. <li></li>
  8. 快速创建a标签带文字内容并从0开始:ul.menu>li.name*5>a{名称$@0}+<kbd>Tab</kbd>
    1. <ul class="menu">
    2. <li class="name"><a href="">名称0</a></li>
    3. <li class="name"><a href="">名称1</a></li>
    4. <li class="name"><a href="">名称2</a></li>
    5. <li class="name"><a href="">名称3</a></li>
    6. <li class="name"><a href="">名称4</a></li>
    7. </ul>
  9. 快速创建a标签带文字内容并从0开始倒序:ul.menu>li.name*5>a{名称$@-0}+<kbd>Tab</kbd>
    1. <ul class="menu">
    2. <li class="name"><a href="">名称4</a></li>
    3. <li class="name"><a href="">名称3</a></li>
    4. <li class="name"><a href="">名称2</a></li>
    5. <li class="name"><a href="">名称1</a></li>
    6. <li class="name"><a href="">名称0</a></li>
    7. </ul>
  10. 快速创建a标签带文字内容并从5-9:
    ul.menu>li.name*5>a{名称$@5}+<kbd>Tab</kbd>
    1. <ul class="menu">
    2. <li class="name"><a href="">名称5</a></li>
    3. <li class="name"><a href="">名称6</a></li>
    4. <li class="name"><a href="">名称7</a></li>
    5. <li class="name"><a href="">名称8</a></li>
    6. <li class="name"><a href="">名称9</a></li>
    7. </ul>
  11. 5行8列的表格创建:
    table>caption{名称}+(thead>tr>th{user}*8)+(tbody>tr*5>td{name}*8)+<kbd>Tab</kbd>
    1. <table>
    2. <caption>名称</caption>
    3. <thead>
    4. <tr>
    5. <th>user</th>
    6. <th>user</th>
    7. <th>user</th>
    8. <th>user</th>
    9. <th>user</th>
    10. <th>user</th>
    11. <th>user</th>
    12. <th>user</th>
    13. </tr>
    14. </thead>
    15. <tbody>
    16. <tr>
    17. <td>name</td>
    18. <td>name</td>
    19. <td>name</td>
    20. <td>name</td>
    21. <td>name</td>
    22. <td>name</td>
    23. <td>name</td>
    24. <td>name</td>
    25. </tr>
    26. <tr>
    27. <td>name</td>
    28. <td>name</td>
    29. <td>name</td>
    30. <td>name</td>
    31. <td>name</td>
    32. <td>name</td>
    33. <td>name</td>
    34. <td>name</td>
    35. </tr>
    36. <tr>
    37. <td>name</td>
    38. <td>name</td>
    39. <td>name</td>
    40. <td>name</td>
    41. <td>name</td>
    42. <td>name</td>
    43. <td>name</td>
    44. <td>name</td>
    45. </tr>
    46. <tr>
    47. <td>name</td>
    48. <td>name</td>
    49. <td>name</td>
    50. <td>name</td>
    51. <td>name</td>
    52. <td>name</td>
    53. <td>name</td>
    54. <td>name</td>
    55. </tr>
    56. <tr>
    57. <td>name</td>
    58. <td>name</td>
    59. <td>name</td>
    60. <td>name</td>
    61. <td>name</td>
    62. <td>name</td>
    63. <td>name</td>
    64. <td>name</td>
    65. </tr>
    66. </tbody>
    67. </table>
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