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

关于代码规范中-属性简写规范 #6

Open
biuxbiu opened this issue Apr 19, 2016 · 0 comments
Open

关于代码规范中-属性简写规范 #6

biuxbiu opened this issue Apr 19, 2016 · 0 comments

Comments

@biuxbiu
Copy link

biuxbiu commented Apr 19, 2016

你好 , 看了原文地址 , 有个疑问的地方:

原文地址 :
http://alloyteam.github.io/CodeGuide/#project-naming

关于:
属性简写

右侧有贴出优化的写法方案分别为
/* not good */
.element {
transition: opacity 1s linear 2s;
}

/* good */
.element {
transition-delay: 2s;
transition-timing-function: linear;
transition-duration: 1s;
transition-property: opacity;
}

问题:
虽然结构清晰 , 但是 , 简写的存在不是为了更方便维护代码吗 , 而且文件的大小也会相对应减少 ,why not good 哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant