nLi[i].style.backgroundColor='rgb('+r+','+g+','+b+')';//将柱体按照算好的RGB值填充nLi[i].style.color='rgb('+(r-80)+','+(g-80)+','+(b-80)+')';//柱体上的数字用稍暗的颜色++i; 完工: 演示地址:http://wzdxy.github.io/ife/t19.html 原来用 CSS3的HSL 可以直接实现,囧...