[英]Emmet to generate html
What is an Emmet equivalent ( Zen coding ) that generates the following: 什么是Emmet等效项(Zen编码),它产生以下内容:
<div id="main">
<article class="isActive">
<ul class="list">
<li id="item1" class="item">
<div class="inner">
<div class="content">
<img src="" alt="" />
</div>
<p>
content
</p>
</div>
</li>
</ul>
</article>
article tag can be repeated more than once and ui tag within article can be repeated more than once. article标签可以重复多次,article中的ui标签可以重复多次。
try the following: 尝试以下方法:
#main>(article.isActive>ul.list>li.item#item$*2>(div.inner>div.content>img^p{content}))*3
3 is the number of article tags. 3是商品标签的数量。 2 is the number of ui tags inside article.
2是文章中的ui标签数量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.