关于css的颜色

  1. Foreground color refers to the actual color of an element, styled with the color property.
  2. Background color refers to the color behind an element, styled with the background-color property.
  3. There are 147 named colors available.
  4. RGB and hexadecimal colors offer over 16 million color possibilities.
  5. HSL is a new way of defining colors in CSS3.
  6. You can modify the opacity of a color with RGBa or HSLa colors.
  7. Not all browsers support newer CSS features, like opacity or HSL, so additional declarations should be made to support a wide audience of users.
  8. 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框架。

 

posted @ 2017-03-24 15:24  ALMOST_MUJIN  阅读(315)  评论(0编辑  收藏  举报