試試這個:
body {
/*height: 100%;*/
width: 100%;
}
body {
background: rgba(117,137,12,1);
background: -moz-linear-gradient(top, rgba(117,137,12,1) 0%, rgba(164,179,87,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(117,137,12,1)), color-stop(100%, rgba(164,179,87,1)));
background: -webkit-linear-gradient(top, rgba(117,137,12,1) 0%, rgba(164,179,87,1) 100%);
background: -o-linear-gradient(top, rgba(117,137,12,1) 0%, rgba(164,179,87,1) 100%);
background: -ms-linear-gradient(top, rgba(117,137,12,1) 0%, rgba(164,179,87,1) 100%);
background: linear-gradient(to bottom, rgba(117,137,12,1) 0%, rgba(164,179,87,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#75890c', endColorstr='#a4b357', GradientType=0);
background-repeat: no-repeat;
}
可惜這並沒有爲我 –