Blogger Information
Blog 2
fans 0
comment 0
visits 736
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1014作业
PHP中文网用户-6874859
Original
409 people have browsed it
我看作业要求 标题:1014作业

Emmet语法练习


1. 标签与内容:[text]

.title{默认标签}

<div class="titlle">默认标签</div>


2. 属性和语法糖:[attr]

[id=app]{app}

<div id="app">app</div>


3. 重复生成:*

.con{box}*3

  1. <div class="con">box</div>
  2. <div class="con">box</div>
  3. <div class="con">box</div>

4. 父子关系:>

ul>li{item}*3

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

5. 兄弟关系:+

h3{兄弟}+p{关系内容}

  1. <h3>兄弟</h3>
  2. <p>关系内容</p>

6. 父级:^ ;(相当于退回上一级)

.box>span{text}^h3{小标题}

  1. <div class="box">
  2. <span>text
  3. </span>
  4. </div>
  5. <h3>小标题</h3>

7. 分组:(……)

nav>h3{导航}+(ul>li*3>a{link})

无效果

这里请老师帮忙解答一下

如果去掉括号就可以:

nav>h3{导航}+ul>li*3>a{link}

  1. <nav>
  2. <h3>导航</h3>
  3. <ul>
  4. <li><a href="">link</a></li>
  5. <li><a href="">link</a></li>
  6. <li><a href="">link</a></li>
  7. </ul>
  8. </nav>

8. 序号:$,$@

默认序号:ul>li{item-$}*3

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

自定义起始序号:ul>li{item-$@6}*3

  1. <ul>
  2. <li>item-6</li>
  3. <li>item-7</li>
  4. <li>item-8</li>
  5. </ul>

逆序:ul>li{item-$@-1}*3

  1. <ul>
  2. <li>item-3</li>
  3. <li>item-2</li>
  4. <li>item-1</li>
  5. </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