Emmet代码用于生成HTML代码为ul,后跟3 li,其中包含href和img ...

时间:2014-02-26 04:11:59

标签: emmet

产生以下内容的代码是什么:

我正在使用带有网络必备安装的visual studio 2013 ...

我需要一个带有3 li的ul和一个img里面...

<ul class="gallery">
<li>
    <a href="../upload/files/image-1" class="fb" rel="gallery">
        <img src="../upload/files/item-1" alt="Foto" />
    </a>
</li>
<li>
    <a href="../upload/files/image-2" class="fb" rel="gallery">
        <img src="../upload/files/item-2" alt="Foto" />
    </a>
</li>
<li>
    <a href="../upload/files/image-3" class="fb" rel="gallery">
        <img src="../upload/files/item-3" alt="Foto" />
    </a>
</li>

谢谢......

1 个答案:

答案 0 :(得分:2)

尝试以下方法:

ul.gallery>li*3>a[href=../upload/files/image-$][class=fb][rel=gallery]>img[src=../upload/files/item-$][alt=Foto]