CMYK values as background Color
问题 I have to set backgroundColor of div using RGB values . Im able to get this way. <div style="width: 100px; height: 100px; background-color: rgb(255,0,0)"> </div> Now, Since I also have CMYK (0,1,0.5,0) values , So Can you assist me how to achieve same with these values. Im doing this way , but no gain . <div style="width: 100px; height: 100px; background-color: device-cmyk(0, 1, 0.5, 0)"> </div> Thanks 回答1: You can't do it directly in CSS. You'll have to convert your CMYK values to their RGB