关于css的颜色
- Foreground color refers to the actual color of an element, styled with the
color
property. - Background color refers to the color behind an element, styled with the
background-color
property. - There are 147 named colors available.
- RGB and hexadecimal colors offer over 16 million color possibilities.
- HSL is a new way of defining colors in CSS3.
- You can modify the opacity of a color with RGBa or HSLa colors.
- Not all browsers support newer CSS features, like opacity or HSL, so additional declarations should be made to support a wide audience of users.
- There are many color picker resources available on the Internet to help you select specific colors, as well as provide colors in different formats.
译文:
1、前景色是针对一个元素的颜色,通过color属性来制定。
2、背景色是元素后面的颜色,通过background-color属性来制定。
3、这里有147种可以用名字代替的颜色。(PS:http://www.colors.commutercreative.com/grid/)
4、RGB和十六进制数来表示有16百万种可能。
5、HSL是一个新的定义颜色的方法在css3中。
6、调整一个颜色的透明度可以用RGBa和HSLa属性来制定。(其中,a的值在0~1之间)
7、并不是所有的浏览器都支持新的css框架。