css color units

/ * 
  With the word colors represent different colors: red, green, blue, etc. 
* / 
P { 
    background-Color : Red ; 
} / * 
  use rgb represented by three primary colors, rgb => red, green, blue 
  density value of the rgb : R & lt (0 ~ 255), G (0 ~ 255), B (0 ~ 255) * / 
P { 
    background-Color : rgb (0, 0, 255) ; / * blue * / 
} / * 
  percentage of rgb : R & lt (0% ~ 100%), G (0% ~ 100%), B (0% ~ 100%) 
  0 0% or no effect must be written * / 
P { 
    background-Color : RGB (0%, 100 %, 0%) / * green * / 
} / *








  rgb hexadecimal value of: R & lt (00 ~ FF), G (00 ~ FF), B (00 ~ FF) 
* / 
P { 
    background-Color : # FF0000 ; / * red, is equivalent to: # F00 * / 
} 
P { 
    background-Color : # F00 ; / * red * / 
}

 

Guess you like

Origin www.cnblogs.com/goujian/p/11731506.html