CSS 很累 afai-knew-it。但是使用 vim 的强大功能,对我来说一切都变得更好了。
也许我的snipmate css 片段可以帮助你。我一直在不断改进这一点,以使事情变得更容易和更快。
例子:
b[press Tab key] /* means border */
/* will produce */
border: 1px solid #999;
bra[press Tab key] /* means border-radius */
/* will produce */
-moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;
=ir /* means Image Replacement */
/* will let you choose from 6 IR methods */
/* Below is one method, namely Leahy/Langridge Method */
#image {height: 0 !important; overflow: hidden; padding-top: 0px; width: 0px; background: url() no-repeat}
=reset /* means Reset.css */
/* will produce the latest reset.css (taken from http://html5boilerplate.com/) */
希望这可以帮助。干杯!