How can I use 3-digit color codes rather than 6-digit color codes in CSS?

后端 未结 9 1574
余生分开走
余生分开走 2020-12-02 12:22

I recently went through my CSS file and switched all my six-digit hexadecimal codes to simple three-digit codes (for example, my #FDFEFF got shortened to

9条回答
  •  盖世英雄少女心
    2020-12-02 12:37

    If you want to save bytes then you better use CSS minification techniques

    • http://en.wikipedia.org/wiki/Minification_(programming)
    • http://developer.yahoo.com/yui/compressor/
    • http://www.minifycss.com/

提交回复
热议问题