關於css的顏色

來源:互聯網
上載者:User

標籤: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的顏色

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.