Blogger Information
Blog 64
fans 2
comment 1
visits 47046
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
markdown常用语法 ,emmet常用语法
Y的博客
Original
573 people have browsed it

markdown语法


1.标题

  1. # 一级标题相当于h1
  2. ## 二级标题
  3. ### 三级标题
  4. #### 四级标题

2.列表

2.1 无序

  • list1
  • list2
  • list3
    • item1
    • item2

2.2 有序

  1. list1
  2. list2
  3. list3
    3.1 item1
    3.2 item2

3.代码

1.单行: const div = document.querySelector('.box')

  1. namespace core;
  2. class Demo
  3. {
  4. ...
  5. }

4.表格

id name email salary
1 王老师 zls@qq.com 12344
2 李老师 zlss@qq.com 1222

5.图片

20期

emmet常用语法


  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. <!-- 1.id,class -->
  11. <!-- h1:标签/元素 -->
  12. <!-- id,clas:属性, -->
  13. <h1>hello world</h1>
  14. <!-- id用#表示,class用.表示,内容用{}包含 -->
  15. <!-- #box{box} -->
  16. <div id="box">box</div>
  17. <!-- .content{content} -->
  18. <div class="content">content</div>
  19. <!-- 2.层级:父子,兄弟 -->
  20. <!-- ul>li*3 -->
  21. <ul>
  22. <li><a href="">首页</a></li>
  23. <li><a href="">教程</a></li>
  24. <li><a href="">社区</a></li>
  25. </ul>
  26. <!-- 3.重复生成 -->
  27. <!-- ul>li*3>a{首页} -->
  28. <ul>
  29. <li><a href="">首页</a></li>
  30. <li><a href="">首页</a></li>
  31. <li><a href="">首页</a></li>
  32. </ul>
  33. <!-- 4.序号:@ $ -->
  34. <!-- ul.menu>li.item*4>a{item$} -->
  35. <ul class="menu">
  36. <li class="item"><a href="">item1</a></li>
  37. <li class="item"><a href="">item2</a></li>
  38. <li class="item"><a href="">item3</a></li>
  39. <li class="item"><a href="">item4</a></li>
  40. </ul>
  41. <!-- ul.menu>li.item*4>a{item$@5} -->
  42. <!-- @:指定起始索引 -->
  43. <ul class="menu">
  44. <li class="item"><a href="">item5</a></li>
  45. <li class="item"><a href="">item6</a></li>
  46. <li class="item"><a href="">item7</a></li>
  47. <li class="item"><a href="">item8</a></li>
  48. </ul>
  49. <!-- ul.menu>li.item*4>a{item$@-5} -->
  50. <!-- 反序开始 -->
  51. <ul class="menu">
  52. <li class="item"><a href="">item8</a></li>
  53. <li class="item"><a href="">item7</a></li>
  54. <li class="item"><a href="">item6</a></li>
  55. <li class="item"><a href="">item5</a></li>
  56. </ul>
  57. <!-- 快速创建5行8列的表格 -->
  58. <!-- table>caption{学生信息表}+(thead>tr>th{title}*8)+(tbody>tr*5>td{item}*8) -->
  59. <table>
  60. <caption>学生信息表</caption>
  61. <thead>
  62. <tr>
  63. <th>title</th>
  64. <th>title</th>
  65. <th>title</th>
  66. <th>title</th>
  67. <th>title</th>
  68. <th>title</th>
  69. <th>title</th>
  70. <th>title</th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <tr>
  75. <td>item</td>
  76. <td>item</td>
  77. <td>item</td>
  78. <td>item</td>
  79. <td>item</td>
  80. <td>item</td>
  81. <td>item</td>
  82. <td>item</td>
  83. </tr>
  84. <tr>
  85. <td>item</td>
  86. <td>item</td>
  87. <td>item</td>
  88. <td>item</td>
  89. <td>item</td>
  90. <td>item</td>
  91. <td>item</td>
  92. <td>item</td>
  93. </tr>
  94. <tr>
  95. <td>item</td>
  96. <td>item</td>
  97. <td>item</td>
  98. <td>item</td>
  99. <td>item</td>
  100. <td>item</td>
  101. <td>item</td>
  102. <td>item</td>
  103. </tr>
  104. <tr>
  105. <td>item</td>
  106. <td>item</td>
  107. <td>item</td>
  108. <td>item</td>
  109. <td>item</td>
  110. <td>item</td>
  111. <td>item</td>
  112. <td>item</td>
  113. </tr>
  114. <tr>
  115. <td>item</td>
  116. <td>item</td>
  117. <td>item</td>
  118. <td>item</td>
  119. <td>item</td>
  120. <td>item</td>
  121. <td>item</td>
  122. <td>item</td>
  123. </tr>
  124. </tbody>
  125. </table>
  126. </body>
  127. </html>
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