网页设计

Colors CMYK

时间:2024-05-12 18:35:39   作者:郑士利   来源:正势利   阅读:303   评论:0
内容摘要:CMYKisasuggestedstandardforCSS4.CMYKColorsCMYKcolorsisacombinationofCYAN,MAGENTA,YELLOW,andBLACK.ComputerscreensdisplaycolorsusingRGBcolorvalues.Printersoftenpr...

CMYK is a suggested standard for CSS4.

CMYK Colors

CMYK colors is a combination of CYAN, MAGENTA, YELLOW , and BLACK.

Computer screens display colors using RGB color values. Printers often presents colors using CMYK color values.

HTML Support

CMYK is not supported in HTML, but it is suggested as a new standard in CSS4.

While waiting for CSS4, you can include W3Schools' Color library, and use CMYK as an HTML attribute like this:

Try it Yourself

Example

<div data-w3-color="cmyk(100%, 0%, 0%, 0%)">

<p>London is the capital city of England.

It is the most populous city in the United Kingdom,

with a metropolitan area of over 13 million inhabitants.</p>

</div>

<script src="/lib/w3color.js"></script>

W3Schools Color Library

The JavaScript library used in the example above can be downloaded from:

https://www.w3schools.com/lib/w3color.js


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

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


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

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

  浙ICP备2025212358号