美文网首页
emmet-vim 使用方法

emmet-vim 使用方法

作者: a_pioneer | 来源:发表于2017-08-06 22:55 被阅读0次
    含义 符号 字符串 结果
    子代 > div>p <div><p></p></div>
    兄弟 + div+p <div></div><p></p>
    ^ div>p^a <div><p></p><a></a></div>
    重复 * div*2 <div></div><div></div>
    成组 () (div>a)*2 <div><a></a></div><div><a></a></div>
    id # div#root <div id="root"></div>
    class . div.class1.class2 <div class="class1 class2"></div>
    属性 [a=b] div[name=hello] <div name="hello"></div>
    • 在编辑模式下 <C-Y> + ,即可生成html结构
    • html:5 快速生成html文档

    相关文章

      网友评论

          本文标题:emmet-vim 使用方法

          本文链接:https://www.haomeiwen.com/subject/ixnnlxtx.html