Use RGB to Color Elements Red(RGB配置红色)
说明:
和使用 hex code 一样,你可以通过不同数值的组合来表示 RGB 中不同的颜色。
这些数值遵循 RGB 顺序模式:第一位表示红色,第二位表示绿色,第三位表示蓝色。
把 body 元素的背景色修改为红色的 RGB 值:rgb(255, 0, 0)。
原始代码:
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
调试代码:
<style>
body {
background-color: rgb(255, 0, 0);
}
</style>
Last updated
Was this helpful?