CSS Colors

CSS Colors 是 CSS 的一个模块,用于处理颜色、颜色类型和透明度。

参考 (Reference)


CSS 数据类型


指南 (Guides)


规范 (Specifications)

Specification Status Comment
CSS Color Module Level 3 Recommendation  
CSS Level 2 (Revision 1) Recommendation  
CSS Level 1 Recommendation Initial definition

浏览器兼容性 (Browser compatibility)

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 1.0 (1.7 or earlier) 3.0 3.5 1.0
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 1.0 1.0 (1) 6.0 6.0 1.0


  • 在 CSS 中, gradient 渐变色并非颜色,其实质是 images