from zen coding to Emmet
2015-08-21 16:38
337 查看
History
Zen codinga speedy way of writing HTML codes using CSS-like selector like syntax. It’s originally proposed by Vadim Makeev, 2008, being famous after matured by Sergey Chikuyonok, 2009. It then evolved into
Emmet, 2013.
A simple example
The following code:[code]div#content>h1+p
generates:
[code]<div id="content"> <h1></h1> <p></p> </div>
Basic usage
documenthtml:5or
!
easy add
class,
.
id,
#
text,
{}
attribute,
[]
nesting
child,
>
sibling,
+
upper level,
^
grouping,
()
implicit tag names[1]
default,
div
lifor
uland
ol
trfor
table,
tbody,
theadand
tfoot
tdfor
tr
optionfor
selectand
optgroup
multiplication,
*
numbering,
$
loremor
lipsum
loremN will generate N random words.
Emmet is intelligent to guess the tag name omited. For example,
.itemin
<ul>will generate
<li class="item"></li>. ↩
相关文章推荐
- POJ 1860 Currency Exchange spfa
- Java在HBase数据库创建表
- Oracle 动态SQL实现SQL查询子集行转列
- ACM学习历程—Codeforces 446C DZY Loves Fibonacci Numbers(线段树 && 数论)
- powerdesigner jdbc 连接 oracle
- C++栈的实现
- ajax与post方法小结
- wstring包含汉字,wcout如何输出
- 【网络编程】之十一、重叠IO Overlapped IO 完成例程
- 【网络编程】之十、重叠IO Overlapped IO
- 解决undefined reference to `pthread_create'的方法
- Python的多线程性能问题和并发问题
- C语言i++和++i的区别和指针*(a++)和*(++a)的区别
- 根据角度和距离生成游戏物体(以圆心向圆圈线上生成物体)
- UIPanGestureRecognizer类中translationInView
- SA8000认证益处
- C++对象模型
- c++对象内存模型【内存布局】
- 设计模式(java) 单例模式 单例类
- 【leetcode】 257. Binary Tree Path