Blogger Information
Blog 3
fans 0
comment 0
visits 1250
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
常用的Emmet语法
手机用户6396678
Original
402 people have browsed it

Emmet语法

Emmet:对简化css支持

  1. .title{
  2. /*w100*/
  3. width= 100px;
  4. /*bgc*/
  5. background-color= #fff;
  6. }

Emmet快速写Html

  1. <!-- h3.name{许向荣} -->
  2. <h3 class="name">许向荣</h3>
  3. //h3#name{许向荣}
  4. <h3 id="name">许向荣</h3>

2.重复

  1. <!-- p#user{用户}*3 -->
  2. <p id="user">用户</p>
  3. <p id="user">用户</p>
  4. <p id="user">用户</p>

3.父子

  1. <!-- ul>li{许向荣}*3 -->
  2. <ul>
  3. <li>许向荣</li>
  4. <li>许向荣</li>
  5. <li>许向荣</li>
  6. </ul>

4.兄弟,同级

  1. <!-- p{php中文网}+div{php中文网真棒} -->
  2. <p>php中文网</p>
  3. <p>php中文网真棒</p>

5.分组

  1. <!-- nav>h3{导航}+ul>li*3>a{link} -->
  2. <nav>
  3. <h3>导航</h3>
  4. <ul>
  5. <li><a href="">link</a></li>
  6. <li><a href="">link</a></li>
  7. <li><a href="">link</a></li>
  8. </ul>
  9. </nav>

6.序号

  1. <!-- 正序 -->
  2. <!-- ul>li*3>a{$} -->
  3. <ul>
  4. <li><a href="">1</a></li>
  5. <li><a href="">2</a></li>
  6. <li><a href="">3</a></li>
  7. </ul>
  1. <!-- 自定义起始序号 -->
  2. <!-- ul>li*3>a{$@2}-->
  3. <ul>
  4. <li><a href="">2</a></li>
  5. <li><a href="">3</a></li>
  6. <li><a href="">4</a></li>
  7. </ul>

7.父级

  1. <!-- .box>span{text}^h3{小标题} -->
  2. <div class="box"><span>text</span></div>
  3. <h3>小标题</h3>

8.属性

  1. <!-- p[while][height] -->
  2. <p while="" height=""></p>
Correcting teacher:WBOYWBOY

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