這是正確的從底部到頂部從淺灰色到白色應用漸變背景到身體?CSS3漸變背景
body {
background: -webkit-gradient(linear, bottom, top, from(#e7e7e7, to(#ffffff));
}
這是正確的從底部到頂部從淺灰色到白色應用漸變背景到身體?CSS3漸變背景
body {
background: -webkit-gradient(linear, bottom, top, from(#e7e7e7, to(#ffffff));
}
DEMO支持所有功能的瀏覽器
body {
background-color: #ffffff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#999999));
background-image: -webkit-linear-gradient(top, #ffffff, #999999);
background-image: -moz-linear-gradient(top, #ffffff, #999999);
background-image: -o-linear-gradient(top, #ffffff, #999999);
background-image: linear-gradient(to bottom, #ffffff, #999999);
}
CSS3 Please可能是有用的
要佐爾坦的解決方案,您還可以添加:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#999999');
支持舊的IE瀏覽器。
然後你需要確保你刪除了一些舊的瀏覽器,如IE9的過濾器。 – SergioL 2013-08-22 14:41:09
它顯示純白色,我使用Chrome的lates版本:O – Alex 2012-07-30 09:51:29