2013-05-04 91 views
0

嘿,我做了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/

+0

除了其他建议,我建议应用背景图像'html' *或*'body',但不能同时使用。 – icktoofay 2013-05-04 22:12:03

回答

2

body风格更改为margin: 0,你会没事的。

你最好找一个CSS Reset代码并使用它。

+0

谢谢:)工作。 – Driglou 2013-05-04 22:01:53

0

尝试清除体内边距:

body { margin: 0; }