私は、すべての最新ブラウザ(Safariの、クロム、FirefoxとOperaの)をサポートする、このようにそれをやってしまった:
background-image: -webkit-linear-gradient(45deg, #B601b3,
#B601B3 2%, #9106D3 4%, #6B16EC 6%, #472FFA 8%, #2850FE 10%,
#1175F7 12%, #039BE5 14%, #01BECA 16%, #0ADCA8 18%, #1DF283 20%,
#3AFD5D 22%, #5CFD3A 24%, #82F21E 26%, #A7DD0A 28%, #C9BF01 30%,
#E49C03 32%, #F77610 34%, #FE5127 36%, #FB3046 38%, #EC166A 40%,
#D40690 42%, #BF01B5 44%, #8F06D5 46%, #9106D3 48%, #6B16EC 50%,
#472FFA 52%, #2850FE 54%, #1175F7 56%, #039BE5 58%, #01BECA 60%,
#0ADCA8 62%, #1DF283 64%, #3AFD5D 66%, #5CFD3A 68%, #82F21E 70%,
#A7DD0A 72%, #C9BF01 74%, #E49C03 76%, #F77610 78%, #FE5127 80%,
#FB3046 82%, #EC166A 84%, #D40690 86%, #BF01B5 88%, #8F06D5 90%,
#9106D3 92%, #6B16EC 94%, #472FFA 96%, #2850FE 98%, #1175F7);
background-image: -moz-linear-gradient(45deg, #B601b3,
#B601B3 2%, #9106D3 4%, #6B16EC 6%, #472FFA 8%, #2850FE 10%,
#1175F7 12%, #039BE5 14%, #01BECA 16%, #0ADCA8 18%, #1DF283 20%,
#3AFD5D 22%, #5CFD3A 24%, #82F21E 26%, #A7DD0A 28%, #C9BF01 30%,
#E49C03 32%, #F77610 34%, #FE5127 36%, #FB3046 38%, #EC166A 40%,
#D40690 42%, #BF01B5 44%, #8F06D5 46%, #9106D3 48%, #6B16EC 50%,
#472FFA 52%, #2850FE 54%, #1175F7 56%, #039BE5 58%, #01BECA 60%,
#0ADCA8 62%, #1DF283 64%, #3AFD5D 66%, #5CFD3A 68%, #82F21E 70%,
#A7DD0A 72%, #C9BF01 74%, #E49C03 76%, #F77610 78%, #FE5127 80%,
#FB3046 82%, #EC166A 84%, #D40690 86%, #BF01B5 88%, #8F06D5 90%,
#9106D3 92%, #6B16EC 94%, #472FFA 96%, #2850FE 98%, #1175F7);
background-image: -o-linear-gradient(45deg, #B601b3,
#B601B3 2%, #9106D3 4%, #6B16EC 6%, #472FFA 8%, #2850FE 10%,
#1175F7 12%, #039BE5 14%, #01BECA 16%, #0ADCA8 18%, #1DF283 20%,
#3AFD5D 22%, #5CFD3A 24%, #82F21E 26%, #A7DD0A 28%, #C9BF01 30%,
#E49C03 32%, #F77610 34%, #FE5127 36%, #FB3046 38%, #EC166A 40%,
#D40690 42%, #BF01B5 44%, #8F06D5 46%, #9106D3 48%, #6B16EC 50%,
#472FFA 52%, #2850FE 54%, #1175F7 56%, #039BE5 58%, #01BECA 60%,
#0ADCA8 62%, #1DF283 64%, #3AFD5D 66%, #5CFD3A 68%, #82F21E 70%,
#A7DD0A 72%, #C9BF01 74%, #E49C03 76%, #F77610 78%, #FE5127 80%,
#FB3046 82%, #EC166A 84%, #D40690 86%, #BF01B5 88%, #8F06D5 90%,
#9106D3 92%, #6B16EC 94%, #472FFA 96%, #2850FE 98%, #1175F7);
はライブ、それを参照してください:http://jsfiddle.net/z8w2N
はこれがための完璧な虹勾配であります将来のサーチャー! :)
レインボーフィドル:http://jsfiddle.net/z8w2N :) –