嘿,我做了css梯度使用css梯度发电机之一,我以通常的方式放在我的代码,因为它一直工作,现在...不知何故梯度使我的页面有滚动条,也如果你会看更好地在我的gived链接中,你会在底角看到一些方块。 这是我的风格的代码和标记是挺干净的只是HTML,body标签与里面什么都没有....css梯度给滚动条
html, body{
height: 100%;
background-position: fixed;
background: #ccffcc;
background-image: linear-gradient(bottom, rgb(161,219,255) 0%, rgb(204,255,204) 22%);
background-image: -o-linear-gradient(bottom, rgb(161,219,255) 0%, rgb(204,255,204) 22%);
background-image: -moz-linear-gradient(bottom, rgb(161,219,255) 0%, rgb(204,255,204) 22%);
background-image: -webkit-linear-gradient(bottom, rgb(161,219,255) 0%, rgb(204,255,204) 22%);
background-image: -ms-linear-gradient(bottom, rgb(161,219,255) 0%, rgb(204,255,204) 22%);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(161,219,255)),
color-stop(0.22, rgb(204,255,204))
);
}
例如http://driglou.pusku.com/javascript/
除了其他建议,我建议应用背景图像'html' *或*'body',但不能同时使用。 – icktoofay 2013-05-04 22:12:03