Blogger Information
Blog 10
fans 0
comment 0
visits 4842
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1014课件作业
onbind
Original
370 people have browsed it

Emment常用语法

第一种 内容

  1. <!-- div{我是div标签} -->
  2. <div>我是div标签</div>

第二种 标签属性

  1. <!-- [data-name=admin]{账号名:admin} -->
  2. <div data-name="admin">账号名:admin</div>
  3. <!-- #name.box{测试ID和class} -->
  4. <div id="name" class="box">测试ID和class</div>

第三种 子级

  1. <!-- ul.list>li.item{列表}*4 -->
  2. <ul class="list">
  3. <li class="item">列表</li>
  4. <li class="item">列表</li>
  5. <li class="item">列表</li>
  6. <li class="item">列表</li>
  7. </ul>

第四种 重复

  1. <!-- .myDiv*4 -->
  2. <div class="myDiv"></div>
  3. <div class="myDiv"></div>
  4. <div class="myDiv"></div>
  5. <div class="myDiv"></div>

第五种 兄弟

  1. <!-- .myDiv+p.test -->
  2. <div class="myDiv"></div>
  3. <p class="test"></p>

第六种 父级

  1. <!-- .header>.box{我是头部}^.conter{我是内容}^.footer>ul.list>li.item{我是底部列表}*3 -->
  2. <div class="header">
  3. <div class="box">我是头部</div>
  4. </div>
  5. <div class="conter">我是内容</div>
  6. <div class="footer">
  7. <ul class="list">
  8. <li class="item">我是底部列表</li>
  9. <li class="item">我是底部列表</li>
  10. <li class="item">我是底部列表</li>
  11. </ul>
  12. </div>

第七种 正序,倒序,定位

  1. <!-- li{item-$}*3 -->
  2. <li>item-1</li>
  3. <li>item-2</li>
  4. <li>item-3</li>
  5. <!-- li{item-$@5}*3 -->
  6. <li>item-5</li>
  7. <li>item-6</li>
  8. <li>item-7</li>
  9. <!-- li{item-$@-5}*3 -->
  10. <li>item-7</li>
  11. <li>item-6</li>
  12. <li>item-5</li>

第八种 组合

  1. <!-- .ul>li*2^(.myDiv>p.test)^(.footer.nav.item*2) -->
  2. <div class="ul">
  3. <li></li>
  4. <li></li>
  5. </div>
  6. <div class="myDiv">
  7. <p class="test"></p>
  8. </div>
  9. <div class="footer nav item"></div>
  10. <div class="footer nav item"></div>
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