这是我的网站链接:链接
我搜索了一下,但没有找到我需要的内容。我试图使用CSS渐变来设置我的网站背景,但它不能正确地调整大小。相反,当你滚动时,它会重复出现。即使将background-repeat设置为no repeat,我仍然遇到这个问题。有人知道我的问题在哪里吗?以下是我的CSS。
html{
height:100%;
}
body {font: 14px/normal Tahoma, Arial, Helvetica, sans-serif;
height: 100%;
min-height:100%;
margin:0;
background-repeat:no-repeat;
background-attachment:fixed;
background-image: -webkit-gradient(linear, left top, left bottom, from(#000), to(#ccc));
background-image: -moz-linear-gradient(top, #000, #ccc);
background-image: -o-linear-gradient(top, #000, #ccc);
background-image: linear-gradient(top, #000, #ccc);
}