首页 > 代码库 > sublime text3 emmet 插件 安装方法,,快捷键

sublime text3 emmet 插件 安装方法,,快捷键

preference->package control->install package> emmet


快捷键

http://docs.emmet.io/cheat-sheet/


! tab 生成html基本格式

table tab 生成table的标签

a tab \ link tab  生成链接, 和css 链接

nav>ul>li 生成:

<nav>
    <ul>
        <li></li>
    </ul>
</nav>

nav>ul>li*5

<nav>
    <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</nav>

生成#id. class

div#header

<div id="header"></div>

span.abc

<span class="abc"></span>

span.abc.def

<style style="line-height: normal; -ms-word-break: normal;" type="text/css"> td.linenos { background-color: #f0f0f0; padding-right: 10px; } span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; } pre { line-height: 125%; } body .hll { background-color: #ffffcc } body { background: #f8f8f8; } body .c { color: #408080; font-style: italic } /* Comment */ body .err { border: 1px solid #ff0000 } /* Error */ body .k { color: #008000; font-weight: bold } /* Keyword */ body .o { color: #666666 } /* Operator */ body .cm { color: #408080; font-style: italic } /* Comment.Multiline */ body .cp { color: #bc7a00 } /* Comment.Preproc */ body .c1 { color: #408080; font-style: italic } /* Comment.Single */ body .cs { color: #408080; font-style: italic } /* Comment.Special */ body .gd { color: #a00000 } /* Generic.Deleted */ body .ge { font-style: italic } /* Generic.Emph */ body .gr { color: #ff0000 } /* Generic.Error */ body .gh { color: #000080; font-weight: bold } /* Generic.Heading */ body .gi { color: #00a000 } /* Generic.Inserted */ body .go { color: #888888 } /* Generic.Output */ body .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ body .gs { font-weight: bold } /* Generic.Strong */ body .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ body .gt { color: #0044dd } /* Generic.Traceback */ body .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ body .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ body .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ body .kp { color: #008000 } /* Keyword.Pseudo */ body .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ body .kt { color: #b00040 } /* Keyword.Type */ body .m { color: #666666 } /* Literal.Number */ body .s { color: #ba2121 } /* Literal.String */ body .na { color: #7d9029 } /* Name.Attribute */ body .nb { color: #008000 } /* Name.Builtin */ body .nc { color: #0000ff; font-weight: bold } /* Name.Class */ body .no { color: #880000 } /* Name.Constant */ body .nd { color: #aa22ff } /* Name.Decorator */ body .ni { color: #999999; font-weight: bold } /* Name.Entity */ body .ne { color: #d2413a; font-weight: bold } /* Name.Exception */ body .nf { color: #0000ff } /* Name.Function */ body .nl { color: #a0a000 } /* Name.Label */ body .nn { color: #0000ff; font-weight: bold } /* Name.Namespace */ body .nt { color: #008000; font-weight: bold } /* Name.Tag */ body .nv { color: #19177c } /* Name.Variable */ body .ow { color: #aa22ff; font-weight: bold } /* Operator.Word */ body .w { color: #bbbbbb } /* Text.Whitespace */ body .mf { color: #666666 } /* Literal.Number.Float */ body .mh { color: #666666 } /* Literal.Number.Hex */ body .mi { color: #666666 } /* Literal.Number.Integer */ body .mo { color: #666666 } /* Literal.Number.Oct */ body .sb { color: #ba2121 } /* Literal.String.Backtick */ body .sc { color: #ba2121 } /* Literal.String.Char */ body .sd { color: #ba2121; font-style: italic } /* Literal.String.Doc */ body .s2 { color: #ba2121 } /* Literal.String.Double */ body .se { color: #bb6622; font-weight: bold } /* Literal.String.Escape */ body .sh { color: #ba2121 } /* Literal.String.Heredoc */ body .si { color: #bb6688; font-weight: bold } /* Literal.String.Interpol */ body .sx { color: #008000 } /* Literal.String.Other */ body .sr { color: #bb6688 } /* Literal.String.Regex */ body .s1 { color: #ba2121 } /* Literal.String.Single */ body .ss { color: #19177c } /* Literal.String.Symbol */ body .bp { color: #008000 } /* Name.Builtin.Pseudo */ body .vc { color: #19177c } /* Name.Variable.Class */ body .vg { color: #19177c } /* Name.Variable.Global */ body .vi { color: #19177c } /* Name.Variable.Instance */ body .il { color: #666666 } /* Literal.Number.Integer.Long */ </style>

<span class="abc def"></span>

CSS
po/ pos
弹出:position:relative;
poa/ pos:a;/posa
弹出: position:absolute;

p
弹出:padding:;
b/bo
bottom:;
backg/bg
background:;
bg+
技术分享
bd
boarder
m
margin
m:a
margin:auto


sublime text3 emmet 插件 安装方法,,快捷键