• RSS订阅 加入收藏  设为首页
光学杂谈

Colors CMYK

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

Colors_CMYK

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 点击这里给我发消息

相关评论
QQ交流群:120100441    QQ客服:49922779 闽ICP备01008686号