开发者

Is there a way to write data attributes in zen coding?

I use data attributes more every day, and I reall开发者_运维技巧y miss a simple way to add a data attribute while using zen coding. I mean I can add inline style (not that I ever use it)

div[style=color:red;]

why can't I add data attribute like

div[data-color=pink]

Any work arounds?


you can:

div[data-color='pink']


I use div[data-color=pink] and it works.

Both div[data-color="pink"] and div[data-color='pink'] don't.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜