【代码片段】CSS3 渐变(CSS3 Gradients)

background-color: #000;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bbb', endColorstr='#000');
background-image: -webkit-gradient(linear, left top, left bottom, from(#bbb), to(#000));
background-image: -webkit-linear-gradient(top, #bbb, #000);
background-image: -moz-linear-gradient(top, #bbb, #000);
background-image: -ms-linear-gradient(top, #bbb, #000);
background-image: -o-linear-gradient(top, #bbb, #000);
background-image: linear-gradient(top, #bbb, #000);

CSS3渐变生成工具:CSS3 Gradient Generatorcolorzilla

延伸学习教程:http://css-tricks.com/examples/CSS3Gradient/http://www.w3cplus.com/content/css3-gradient(中文)

posted @ 2014-11-12 20:14  KOJYA  阅读(121)  评论(0编辑  收藏  举报