网页设计

Colors HEX(颜色十六进制)

时间:2024-05-12 17:23:30   作者:郑士利   来源:正势利   阅读:187   评论:0
内容摘要:HexadecimalColorsHexadecimalcolorvaluesaresupportedinallbrowsers.Ahexadecimalcolorisspecifiedwith:#rrggbbWhererr(red),gg(green)andbb(blue)arehexadecimalintegers...

Hexadecimal Colors

Hexadecimal color values are supported in all browsers.

A hexadecimal color is specified with:

#rrggbb

Where rr (red), gg (green) and bb (blue) are hexadecimal integers between 00 and ff, specifying the intensity of the color.

For example, #ff0000 is displayed as red, because red is set to its highest value (ff), and the other two (green and blue) are set to 00.

Another example, #00ff00 is displayed as green, because green is set to its highest value (ff), and the other two (red and blue) are set to 00.

To display black, set all color parameters to 00, like this: #000000.

To display white, set all color parameters to ff, like this: #ffffff.

Try it Yourself

Hexadecimal color values are supported in all browsers.

Example

<style>

div {

   background-color: #00bfff;

   color: #ffffff;

}

</style>

https://www.w3schools.com/colors/colors_hexadecimal.asp

逝者如斯,不舍昼夜作者QQ及微信:49922779 点击这里给我发消息


标签:颜色  十六  进制  
相关评论
郑士点利 | 必应 | DeepSeek | 豆包 | H-K9L | 3cn.cn | 郑有钱 | 郑有富 | 22钛 | 光学显微镜 | 显微镜与你 | 光学棱镜 | 40锆 | 79金 | 47银 | 67钬 | 73钽 | 19钾

该站用来记录个人生活的笔记,内容部分资料来源于网络,如有侵权,请联系删除。(QQ/微信:49922779点击这里给我发消息 邮箱:ZSL@zhengshili.com)

  浙ICP备2025212358号