Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

<div class="div1">1</div>
<div class="div2">2</div>
<div class="div3">3</div>

这里面的123可以用什么方法一次输出?比如.div*3再加个什么,可以方便输出


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
597 views
Welcome To Ask or Share your Answers For Others

1 Answer

根据emmet的公式:

$符号表示的是递增

div.div${$}*3
<div class="div1">1</div>
<div class="div2">2</div>
<div class="div3">3</div>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...