【说明】本系列博文是依据 Emmet 官方文档翻译的,原文地址为:http://docs.emmet.io/,部分内容已经在博主之前的博文中节选过,为方便已经收藏过之前博文的朋友,没有删除这些博文,仅将其完整的收录于本系列中。这一节其实没有什么可翻译的,只是为了保持文档的完整性,并且,这个表在实际使用时是很有用的。不过限于博客的排版格式,这里的呈献形式远不如原文。在此列出原文的地址(http://docs.emmet.io/cheat-sheet/),朋友们可以经常拿来参考:)
全部未知的缩写都被转换成标签,如 foo
→ <foo></foo>
。
Alias of html:5
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title> Document</title> </head> <body> </body> </html>Alias of input[type=hidden name]
<input type="hidden" name="" />Alias of input:hidden
<input type="hidden" name="" />Alias of inp
<input type=" text" name="" id="" />Alias of inp[type=search]
<input type="search" name="" id="" />Alias of inp[type=email]
<input type="email" name="" id="" />Alias of inp[type=url]
<input type="url" name="" id="" />Alias of inp[type=password]
<input type="password" name="" id="" />Alias of input:password
<input type="password" name="" id="" />Alias of inp[type=datetime]
<input type="datetime" name="" id="" />Alias of inp[type=date]
<input type="date" name="" id="" />Alias of inp[type=datetime-local]
<input type="datetime-local" name="" id="" />Alias of inp[type=month]
<input type="month" name="" id="" />Alias of inp[type=week]
<input type="week" name="" id="" />Alias of inp[type=time]
<input type="time" name="" id="" />Alias of inp[type=number]
<input type="number" name="" id="" />Alias of inp[type=color]
<input type="color" name="" id="" />Alias of inp[type=checkbox]
<input type="checkbox" name="" id="" />Alias of input:checkbox
<input type="checkbox" name="" id="" />Alias of inp[type=radio]
<input type="radio" name="" id="" />Alias of input:radio
<input type="radio" name="" id="" />Alias of inp[type=range]
<input type="range" name="" id="" />Alias of inp[type=file]
<input type="file" name="" id="" />Alias of input:file
<input type="file" name="" id="" />Alias of input:submit
<input type="submit" value="" />Alias of input:image
<input type="image" src="" alt="" />Alias of input:button
<input type="button" value="" />Alias of input:button[type=reset]
<input type="reset" value="" />Alias of menu[type=context]>
<menu type="context"></menu>Alias of menu:context
<menu type="context"></menu>Alias of menu[type=toolbar]>
<menu type="toolbar"></menu>Alias of menu:toolbar
<menu type="toolbar"></menu>Alias of blockquote
<blockquote></blockquote>Alias of acronym
<acronym title=""></acronym>Alias of figure
<figure></figure>Alias of figcaption
<figcaption></figcaption>Alias of iframe
<iframe src="" frameborder="0"></iframe>Alias of embed
<embed src="" type="" />Alias of object
<object data="" type=""></object>Alias of source
<source></source>Alias of caption
<caption></caption>Alias of colgroup
<colgroup></colgroup>Alias of fieldset
<fieldset></fieldset>Alias of button
<button></button>Alias of optgroup
<optgroup></optgroup>Alias of option
<option value=""></option>Alias of textarea
<textarea name="" id="" cols=" 30" rows=" 10"></textarea>Alias of legend
<legend></legend>Alias of section
<section></section>Alias of article
<article></article>Alias of header
<header></header>Alias of footer
<footer></footer>Alias of address
<address></address>Alias of dialog
<dialog></dialog>Alias of strong
<strong></strong>Alias of progress
<progress></progress>Alias of datagrid
<datagrid></datagrid>Alias of datalist
<datalist></datalist>Alias of keygen
<keygen />Alias of output
<output></output>Alias of details
<details></details>Alias of command
<command />Alias of html>(head>meta[charset=UTF-8]+title{${1:Document}})+body
<html> <head> <meta charset="UTF-8" /> <title> Document</title> </head> <body> </body> </html>Alias of html>(head>meta[http-equiv="Content-Type" content="text/html;charset=${charset}"]+title{${1:Document}})
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title> Document</title> </head> </html>Alias of !!!4t+doc4[lang=${lang}]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title> Document</title> </head> </html>Alias of !!!4s+doc4[lang=${lang}]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title> Document</title> </head> </html>Alias of !!!xt+doc4[xmlns=http://www.w3.org/1999/xhtml xml:lang=${lang}]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title> Document</title> </head> </html>Alias of !!!xs+doc4[xmlns=http://www.w3.org/1999/xhtml xml:lang=${lang}]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title> Document</title> </head> </html>Alias of !!!xxs+doc4[xmlns=http://www.w3.org/1999/xhtml xml:lang=${lang}]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title> Document</title> </head> </html>Alias of !!!+doc[lang=${lang}]
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title> Document</title> </head> <body> </body> </html>Alias of ol>li
<ol> <li></li> </ol>Alias of ul>li
<ul> <li></li> </ul>Alias of dl>dt+dd
<dl> <dt></dt> <dd></dd> </dl>Alias of map>area
<map name=""> <area shape="" coords="" href="" alt="" /> </map>Alias of table>tr>td
<table> <tr> <td></td> </tr> </table>Alias of colgroup>col
<colgroup> <col /> </colgroup>Alias of tr>td
<tr> <td></td> </tr>Alias of select>option
<select name="" id=""> <option value=""></option> </select>Alias of optgroup>option
<optgroup> <option value=""></option> </optgroup>CSS 模块使用模糊搜索查找未知的缩写,如 ov:h
== ov-h
== ovh
== oh
。
如果缩写找不到,将转换为属性名: foo-bar
→ foo-bar: |;
可以使用连字符作为缩写的前缀,产生 vendor 前缀的属性:-foo
Alias of tm
<xsl:template match="" mode=""></xsl:template>Alias of tn
<xsl:template name=""></xsl:template>Alias of xsl:when
<xsl:when test=""></xsl:when>Alias of each
<xsl:for-each select=""></xsl:for-each>Alias of xsl:choose>xsl:when+xsl:otherwise
<xsl:choose> <xsl:when test=""></xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose>Alias of !!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{ |}
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> </xsl:stylesheet>