use rgb to mix colors - zilongxuan001/LearnFreecode GitHub Wiki
用不同的RGB值表示不同的颜色
示例如下
<style>
.red-text {
color: rgb(255,0,0);
}
.orchid-text {
color: rgb(218,112,214);
}
.sienna-text {
color: rgb(160,82,45);
}
.blue-text {
color: rgb(0,0,255);
}
</style>
<h1 class="red-text">I am red!</h1>
<h1 class="orchid-text">I am orchid!</h1>
<h1 class="sienna-text">I am sienna!</h1>
<h1 class="blue-text">I am blue!</h1>
orchid 淡紫色 sienna 赭色,红褐色
浏览器显示如下
Basic CSS: Use RGB to Mix Colors | Learn freeCodeCamp
2018-10-7 17:00:02