Zen coding下的编码演示
- html:5 或!:用于HTML5文档类型
- html:xt:用于XHTML过渡文档类型
- html:4s:用于HTML4严格文档类型
- <p class="bar" id="foo"></p>
- <h1>foo</h1>
- <a href="#"></a>
- >:子元素符号,表示嵌套的元素
- +:同级标签符号
- ^:可以使该符号前的标签提升一行
- <div class="foo">
- <h1></h1>
- </div>
- <div class="bar">
- <h2></h2>
- </div>
- li:用于ul和ol中
- tr:用于table、tbody、thead和tfoot中
- td:用于tr中
- option:用于select和optgroup中
- <ul>
- <li></li>
- <li></li>
- <li></li>
- </ul>
- <ul>
- <li class="item1"></li>
- <li class="item2"></li>
- <li class="item3"></li>
- </ul>
- width: 100px;
- height: 10%;
- margin: 5em;
- p 表示%
- e 表示 em
- x 表示 ex
- @font-face {
- font-family:;
- src:url();
- }
- @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;
- }
- overflow: hidden;
- -webkit-transform: ;
- -moz-transform: ;
- -ms-transform: ;
- -o-transform: ;
- transform: ;
- -webkit-super-foo: ;
- -moz-super-foo: ;
- -ms-super-foo: ;
- -o-super-foo: ;
- super-foo: ;
- -webkit-transform: ;
- -moz-transform: ;
- transform: ;
- w 表示 -webkit-
- m 表示 -moz-
- s 表示 -ms-
- o 表示 -o-
- background-image: -webkit-gradient(linear, 0 0, 100% 0, color-stop(0.5, #fff), to(#000));
- background-image: -webkit-linear-gradient(left, #fff 50%, #000);
- background-image: -moz-linear-gradient(left, #fff 50%, #000);
- background-image: -o-linear-gradient(left, #fff 50%, #000);
- background-image: linear-gradient(left, #fff 50%, #000);
引用
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Libero delectus.
- 添加新缩写或更新现有缩写,可修改snippets.json文件
- 更改Emmet过滤器和操作的行为,可修改preferences.json文件
- 定义如何生成HTML或XML代码,可修改syntaxProfiles.json文件
- Sublime Text 2
- TextMate 1.x
- Eclipse/Aptana
- Coda 1.6 and 2.x
- Espresso
- Chocolat (通过“Install Mixin”对话框添加)
- Komodo Edit/IDE (通过Tools → Add-ons菜单添加)
- Notepad++
- PSPad
- <textarea>
- CodeMirror2/3
- Brackets
后代:>
<nav> <ul> <li></li> </ul> </nav>
兄弟:+
<div></div> <p></p> <blockquote></blockquote>
上级:^
<div></div> <div> <p><span></span><em></em></p> <blockquote></blockquote> </div>
<div></div> <div> <p><span></span><em></em></p> </div> <blockquote></blockquote>
分组:()
<div> <header> <ul> <li><a href=""></a></li> <li><a href=""></a></li> </ul> </header> <footer> <p></p> </footer> </div>
<div> <dl> <dt></dt> <dd></dd> <dt></dt> <dd></dd> <dt></dt> <dd></dd> </dl> </div> <footer> <p></p> </footer>
乘法:*
<ul> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>
自增符号:$
<ul> <li class="item1"></li> <li class="item2"></li> <li class="item3"></li> <li class="item4"></li> <li class="item5"></li> </ul>
<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>
ID和类属性
<div id="header"></div>
<div class="title"></div>
<form id="search" class="wide"></form>
<p class="class1 class2 class3"></p>
自定义属性
<p title="Hello world"></p>
<td rowspan="2" colspan="3" title=""></td>
<div a="value1" b="value2"></div>
文本:{}
<a href="">Click me</a>
<p>Click <a href="">here</a> to continue</p>
隐式标签
<div class="class"></div>
<em><span class="class"></span></em>
<ul> <li class="class"></li> </ul>
<table> <tr class="row"> <td class="col"></td> </tr> </table>
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> </body> </html>
<a href=""></a>
<a href="http://"></a>
<a href="mailto:"></a>
<abbr title=""></abbr>
<acronym title=""></acronym>
<base href="" />
<basefont />
<br />
<frame />
<hr />
<bdo dir=""></bdo>
<bdo dir="rtl"></bdo>
<bdo dir="ltr"></bdo>
<col />
<link rel="stylesheet" href="" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="print.css" media="print" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="apple-touch-icon" href="favicon.png" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="atom.xml" />
<meta />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="Content-Type" content="text/html;charset=windows-1251" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<style></style>
<script></script>
<script src=""></script>
<img src="" alt="" />
<iframe src="" frameborder="0"></iframe>
<embed src="" type="" />
<object data="" type=""></object>
<param name="" value="" />
<map name=""></map>
<area shape="" coords="" href="" alt="" />
<area shape="default" href="" alt="" />
<area shape="circle" coords="" href="" alt="" />
<area shape="rect" coords="" href="" alt="" />
<area shape="poly" coords="" href="" alt="" />
<form action=""></form>
<form action="" method="get"></form>
<form action="" method="post"></form>
<label for=""></label>
<input type="text" />
<input type="text" name="" id="" />
<input type="hidden" name="" />
<input type="hidden" name="" />
<input type="text" name="" id="" />
<input type="search" name="" id="" />
<input type="email" name="" id="" />
<input type="url" name="" id="" />
<input type="password" name="" id="" />
<input type="password" name="" id="" />
<input type="datetime" name="" id="" />
<input type="date" name="" id="" />
<input type="datetime-local" name="" id="" />
<input type="month" name="" id="" />
<input type="week" name="" id="" />
<input type="time" name="" id="" />
<input type="number" name="" id="" />
<input type="color" name="" id="" />
<input type="checkbox" name="" id="" />
<input type="checkbox" name="" id="" />
<input type="radio" name="" id="" />
<input type="radio" name="" id="" />
<input type="range" name="" id="" />
<input type="file" name="" id="" />
<input type="file" name="" id="" />
<input type="submit" value="" />
<input type="submit" value="" />
<input type="image" src="" alt="" />
<input type="image" src="" alt="" />
<input type="button" value="" />
<input type="button" value="" />
<isindex />
<input type="reset" value="" />
<select name="" id=""></select>
<option value=""></option>
<textarea name="" id="" cols="30" rows="10"></textarea>
<menu type="context"></menu>
<menu type="context"></menu>
<menu type="toolbar"></menu>
<menu type="toolbar"></menu>
<video src=""></video>
<audio src=""></audio>
<html xmlns="http://www.w3.org/1999/xhtml"></html>
<keygen />
<command />
<blockquote></blockquote>
<acronym title=""></acronym>
<figure></figure>
<figcaption></figcaption>
<iframe src="" frameborder="0"></iframe>
<embed src="" type="" />
<object data="" type=""></object>
<source></source>
<caption></caption>
<colgroup></colgroup>
<fieldset></fieldset>
<button></button>
<button type="button"></button>
<button type="reset"></button>
<button type="submit"></button>
发表评论 取消回复