CodeGuide icon indicating copy to clipboard operation
CodeGuide copied to clipboard

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

Open biuxbiu opened this issue 9 years ago • 0 comments

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

原文地址 : 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 哈

biuxbiu avatar Apr 19 '16 15:04 biuxbiu