Blogger Information
Blog 8
fans 0
comment 0
visits 4223
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
VSCODE安装与emmet语法
deathpool
Original
523 people have browsed it

1.VSCODE安装

vscode安装

2.emmet语法

标签属性:(.) ,(id)

语法:标签 + . + 类选择器名
例子:
输入:div.obj1
结果:<div class="obj1"></div>

语法:标签 + . + ID选择器名
例子:
输入:div#obj1
结果:<div id="obj1"></div>


上下级标签嵌套

语法:标签>标签>标签
例子:
输入:div>p>ul>li
结果:

  1. <div>
  2. <p>
  3. <ul>
  4. <li></li>
  5. </ul>
  6. </p>
  7. </div>

平级标签

语法:标签+标签+标签
例子:
输入:div+p+ul+li
结果:

  1. <div></div>
  2. <p></p>
  3. <ul></ul>
  4. <li></li>

标签上级的平级

语法:标签>标签^标签
例子:
输入:div>p^a
结果:

  1. <div>
  2. <p>
  3. </p>
  4. </div>
  5. <a></a>

文本内容

语法:标签{需要输入的内容}
例子:
输入:p{asd}
输出:<p>asd</p>


重复代码次数

语法:*n
例子:
输入:div>p>a{link}*5
输出:

  1. <div>
  2. <p>
  3. <a href="">link</a>
  4. <a href="">link</a>
  5. <a href="">link</a>
  6. <a href="">link</a>
  7. <a href="">link</a>
  8. </p>
  9. </div>

标签属性[]

语法:标签[属性]
例子:
输入:a[href=”https://www.php.cn"]{php}
输出:<a href="https://www.php.cn">php</a>


序号:$(输出内容加编号)

语法:用于{}中:{内容$}
例子:
输入:ul>li{php$}*2
输出:

  1. <ul>
  2. <li>php1</li>
  3. <li>php2</li>
  4. </ul>

序号:$$(个位数编号前面加0)

语法:用于{ }中:{内容}
例子:
输入:ul>li{php}*2
输出:

  1. <ul>
  2. <li>php01</li>
  3. <li>php02</li>
  4. </ul>

序号:$@n (从n开始编号)

语法:用于{ }中:{内容$@n}
例子:
输入:ul>li{php$@5}*4
输出:

  1. <ul>
  2. <li>php5</li>
  3. <li>php6</li>
  4. <li>php7</li>
  5. <li>php8</li>
  6. </ul>

序号:$@-n (降序编号到n)

语法:用于{ }中:{内容$@-n}
例子:
输入:ul>li{php$@-5}*4
输出:

  1. <ul>
  2. <li>php8</li>
  3. <li>php7</li>
  4. <li>php6</li>
  5. <li>php5</li>
  6. </ul>
Correcting teacher:天蓬老师天蓬老师

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