Zen HTML Selectors

E#name

div#name

<div id="name"></div>

E.name

div.name

         <div class="name"></div>

div.one.two

<div class="one two"></div>

div#name.one.two

<div id="name"class="onetwo"></div>

E>E

head>link

<head>
    <link/>
</head>

table>tr>td

<table>
<tr>
    <td></td>
</tr>
</table>

ul#name>li.item

<ul id="name">
    <li class="item"></li>
</ul>

E+E

p+p

<p></p>
<p></p>

div#name>p.one+p.two

<div id="name">
    <p class="one"></p>
    <p class="two"></p>
</div>

E[attr]

Added in v0.6

p[title]

<p title=""></p>

td[colspan=2]

<td colspan="2"></td>

span[title="Hello"rel]

<span title="Hello"rel=""></span>

E|filter

Added in v0.6

p.title|e

&lt;pclass="title"&gt;&lt;/p&gt;

Read Filters for more info

E*N

p*3

<p></p>
<p></p>
<p></p>

ul#name>li.item*3

<ul id="name">
    <li class="item"></li>
    <li class="item"></li>
    <li class="item"></li>
</ul>

E*N$

p.name-$*3

<p class="name-1"></p>
<p class="name-2"></p>
<p class="name-3"></p>

select>option#item-$*3

<select>
    <option id="item-1"></option>
    <option id="item-2"></option>
    <option id="item-3"></option>
</select>

E+

ul+

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

table+

<table>
<tr>
    <td></td>
</tr>
</table>

dl+

<dl>
    <dt></dt>
    <dd></dd>
</dl>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值