• RSS订阅 加入收藏  设为首页

Colors CMYK

时间:2024/5/12 18:35:39   作者:郑士利   来源:正势利   阅读:32   评论:0


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


<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>


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

W3Schools Color Library

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



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

QQ交流群:120100441    QQ客服:49922779 闽ICP备01008686号