Blogger Information
Blog 37
fans 0
comment 0
visits 14297
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Markdown语法和emmet语法
秋闲独醉
Original
463 people have browsed it

Markdown 的语法

1、标题

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

2、列表

1、无序列表

  • sheet1
  • sheet2
  • sheet3
    • sheet1
    • sheet2

2、有序列表

  1. sheet1
  2. sheet2
    2.1 sheet1
    2.2 sheet2

3、代码

1、单行

var param = document.getElementId('name');

2、多行

  1. Class Demo(){
  2. public $name = $_REQUEST['name'];
  3. public function test(){
  4. }
  5. }

4、表格

id name age sex
1 Tom 20 1
2 Jooin 18 0

5、图片

这是个风景图

emmet语法

1、用’html:5’或 ‘!’创建html文档结构

  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. </body>
  11. </html>

2、’标签名.class#id{内容}’创建元素和属性

p.name#name{姓名}

  1. <p class="name" id="name">
  2. 姓名
  3. </p>

3、’父子标签’

ul>li*3{$}

  1. <ul>
  2. <li>1</li>
  3. <li>2</li>
  4. <li>3</li>
  5. </ul>

4、兄弟标签

.name{姓名}+.age{年龄}

  1. <div class="name">姓名</div>
  2. <div class="age">年龄</div>

5、序号

$指定数1开始序号,@指定开始的序号

ul.menu>li.option*4{item$}

  1. <ul class="menu">
  2. <li class="option">item1</li>
  3. <li class="option">item2</li>
  4. <li class="option">item3</li>
  5. <li class="option">item4</li>
  6. </ul>

ul.menu>li.option*4{item$@3}

  1. <ul class="menu">
  2. <li class="option">item3</li>
  3. <li class="option">item4</li>
  4. <li class="option">item5</li>
  5. <li class="option">item6</li>
  6. </ul>

ul.menu>li.option*4{item$@-3}

  1. <ul class="menu">
  2. <li class="option">item6</li>
  3. <li class="option">item5</li>
  4. <li class="option">item4</li>
  5. <li class="option">item3</li>
  6. </ul>
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