Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一直被忽略的zen-coding #128

Open
FrankKai opened this issue Dec 6, 2018 · 3 comments
Open

一直被忽略的zen-coding #128

FrankKai opened this issue Dec 6, 2018 · 3 comments
Labels

Comments

@FrankKai
Copy link
Owner

FrankKai commented Dec 6, 2018

基于2011年的这篇google的技术文章:Zen Coding — a new way of writing HTML and CSS code
结合自己在开发中的实践,整理出一些常用的zen-coding技巧。

@FrankKai
Copy link
Owner Author

FrankKai commented Dec 16, 2018

生成带多个属性的标签

div[class='foo' role='bar']

@FrankKai
Copy link
Owner Author

生成带文本节点的标签

div{foo}

@FrankKai
Copy link
Owner Author

生产带多个子标签的标签

div>p[class="foo"]+p[class="bar"]

@FrankKai FrankKai added the 随想 label Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant