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.
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论