基本语法
-
div+div>p>span+em^bq
<div></div>
<div>
<p><span></span><em></em></p>
<blockquote></blockquote>
</div>
|
-
div+div>p>span+em^^bq
<div></div>
<div>
<p><span></span><em></em></p>
</div>
<blockquote></blockquote>
|
div>(header>ul>li*2>a)+footer>p
<div>
<header>
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</header>
<footer>
<p></p>
</footer>
</div>
|
(div>dl>(dt+dd)*3)+footer>p
<div>
<dl>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
</div>
<footer>
<p></p>
</footer>
|
<ul>
<li class="item1"></li>
<li class="item2"></li>
<li class="item3"></li>
<li class="item4"></li>
<li class="item5"></li>
</ul>
|
h$[title=item$]{Header $}*3
<h1 title="item1">Header 1</h1>
<h2 title="item2">Header 2</h2>
<h3 title="item3">Header 3</h3>
|
<ul>
<li class="item001"></li>
<li class="item002"></li>
<li class="item003"></li>
<li class="item004"></li>
<li class="item005"></li>
</ul>
|
<ul>
<li class="item5"></li>
<li class="item4"></li>
<li class="item3"></li>
<li class="item2"></li>
<li class="item1"></li>
</ul>
|
<ul>
<li class="item3"></li>
<li class="item4"></li>
<li class="item5"></li>
<li class="item6"></li>
<li class="item7"></li>
</ul>
|
<form id="search" class="wide"></form>
|
<p class="class1 class2 class3"></p>
|
td[rowspan=2 colspan=3 title]
<td rowspan="2" colspan="3" title=""></td>
|
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
</head>
<body>
</body>
</html>
|
<link rel="stylesheet" href="style.css" />
|
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml" />
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
<form action="" method="get"></form>
|
<input type="hidden" name="" />
|
input:text
, input:t
input:password,
input:p
input:checkbox
, input:c
input:radio
,input:r
input:file
, input:f
input:submit
, input:s
input:image
,input:i
input:button
, input:b
<option value=""></option>
|
button:disabled
,button:d
, btn:d
<button disabled="disabled"></button>
|
<iframe src="" frameborder="0"></iframe>
|
<dl>
<dt></dt>
<dd></dd>
</dl>
`
|
<table>
<tr>
<td></td>
</tr>
</table>
|
<select name="" id="">
<option value=""></option>
</select>
|
<!--[if lte IE 6]>
${child}
<![endif]-->
|
CSS
visual formating
-
pos:s
-
pos:a
-
pos:r
-
pos:f
-
t
-
b:a
-
l
-
l:a
-
z
-
z:a
-
fl
-
fl:n
-
fl:l
-
fl:r
-
cl
-
cl:n
-
cl:l
-
cl:r
-
cl:b
-
d
-
d:n
-
d:b
-
d:i
-
d:ib
-
d:itb
-
d:tbc
-
v
-
v:v
-
v:h
-
ov
-
ov:v
-
ov:h
-
ov:s
-
zoo, zm
-
cur:d
-
cur:ha
-
cur:p
Margin & Padding
-
m:a
-
mt
-
mt:a
-
mr
-
mr:a
-
mb
-
mb:a
-
ml
-
ml:a
-
pt
-
pr
-
pb
-
pl
Font
-
fw
-
fw:n
-
fw:b
-
fw:br
-
fw:lr
-
fs
-
fs:n
-
fz
-
ff
-
ff:s
-
ff:ss
-
ff:m
-
ff:a
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
-
ff:t
font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
|
-
ff:v
font-family: Verdana, Geneva, sans-serif;
|
Background
-
bg
-
bg+
background:#fff url() 0 0 no-repeat;
|
-
bg:n
-
bgc
-
bgc:t
background-color:transparent;
|
-
bgi
-
bgi:n
-
bgr
-
bgr:n
background-repeat:no-repeat;
|
-
bgr:x
background-repeat:repeat-x;
|
-
bgr:y
background-repeat:repeat-y;
|
-
bgr:sp
-
bgr:rd
-
bga
-
bga:f
background-attachment:fixed;
|
-
bga:s
background-attachment:scroll;
|
-
bgp
-
bgpx
-
bgpy
-
bgbk
-
bgbk:bb
background-break:bounding-box;
|
-
bgbk:eb
background-break:each-box;
|
-
bgbk:c
background-break:continuous;
|
-
bgcp
background-clip:padding-box;
|
-
bgcp:bb
background-clip:border-box;
|
-
bgcp:pb
background-clip:padding-box;
|
-
bgcp:cb
background-clip:content-box;
|
-
bgcp:nc
-
bgo
-
bgo:pb
background-origin:padding-box;
|
-
bgo:bb
background-origin:border-box;
|
-
bgo:cb
background-origin:content-box;
|
-
bgsz
-
bgsz:a
-
bgsz:ct
-
bgsz:cv
Color
其他
@keyframes identifier {
from { }
to { }
}
|
@font-face {
font-family: 'FontName';
src: url('FileName.eot');
src: url('FileName.eot?#iefix') format('embedded-opentype'),
url('FileName.woff') format('woff'),
url('FileName.ttf') format('truetype'),
url('FileName.svg#FontName') format('svg');
font-style: normal;
font-weight: normal;
}
|
font-face {
font-family:;
src:url(|);
}
|
原文链接:http://blog.poetries.top/2016/09/09/Emmet%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE/