「CSS速記」在團隊發展方面不夠好嗎?「CSS Shorthands」在團隊開發方面不夠好嗎?
當多個人在同一個項目上工作。任何人都可以具有不同級別的CSS知識,因此當需要對CSS進行任何更改時,有些人可能會被簡寫混淆。
For example:
我應該避免這種
font: 1em/1.5em bold italic serif
和團隊開發使用
font-size: 1em;
line-height: 1.5em;
font-weight: bold;
font-style: italic;
font-family: serif
?以及哪些shorthands是其他的CSS速記不太好用於可讀性,哪些是好的?
我喜歡過去見過的shorthands,但之前沒有看過'font'。不知怎的,我不喜歡這個。 – Matchu
我剛剛發現這個鏈接也「爲什麼你不應該使用CSS字體速記」http://www.impressivewebs.com/screencast-why-you-shouldnt-use-css-font-shorthand/ –