码迷,mamicode.com
首页 > Web开发 > 详细

关于css的颜色

时间:2017-03-24 15:31:45      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:support   not   different   rgb   方法   属性   nal   .com   css3   

  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框架。

 

关于css的颜色

标签:support   not   different   rgb   方法   属性   nal   .com   css3   

原文地址:http://www.cnblogs.com/almost-mujin/p/6611697.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!