CSS讲解 配色.ppt

  1. 1、本文档共25页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CSS讲解 配色

Color not only brings your site to life, but also helps convey the mood and evokes reactions. SUMMARY There are three ways to specify colors in CSS: RGB values, hex codes, and color names. SUMMARY Color pickers can help you find the color you want. SUMMARY Ensure that there is enough contrast between any text and the background color (or people will not be able to read your content). SUMMARY CSS3 has introduced an extra value for RGB colors to indicate opacity. It is known as RGBA. SUMMARY CSS3 also allows you to specify colors as HSL values, with an optional opacity value. It is known as HSLA. SUMMARY The three traditional ways to specify colors: Color name Hex code RGB values Explain: how color on a screen is made by mixing red, green, and blue and how a screen is made up of pixels Click: RGB colors come in Explain: how color on a screen is made by mixing red, green, and blue how a screen is made up of pixels Click: color picker tool replaces colors Explain: how the values work Click: RGB values comes in Click: Hex values comes in Click: Color names comes in Explain: terms Click: hue Click: saturation Click: brightness Explain: contrast is important Load: low contrast Click: high contrast Click: medium contrast Click: reversed text Note: Will not be transparent in older browsers Note: RGBA has a fallback of plain RGB values for older browsers that do not understand RGBA. Introducing these concepts for the hsl / hsla properties Click: introduces the hue wheel (represented as angle 0 - 360) similar to colloquial idea of color Click: saturation (% of gray in color) Click: lightness (amount of white/lightness or black/darkness in color) Note: second rule uses alpha transparency value (between 0 and 1.0) Clicks: Load individual bullets Clicks: Load individual bullets Clicks: Load individual bullets Clicks: Load individual bullets Clicks: Load individual bullets Clicks: Load individual bullets CSS RESULT HTML h1 { color: DarkCyan;} h2 { color: #ee4e80;} p {

文档评论(0)

yan698698 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档