如何制作网页渐变ASP.NET和CSS?例如,渐变以浅蓝色开始,以白色结束?
答案 0 :(得分:0)
答案 1 :(得分:0)
尝试Css3Please,生成跨浏览器渐变
虽然ColorZilla有一个非常好的渐变编辑器工具!
例如,以下css样式应该可以满足您的需求:
background-color: #00aeef;
background-image: -webkit-gradient(linear, left top, left bottom, from(#00aeef), to(#ffffff)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #00aeef, #ffffff); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #00aeef, #ffffff); /* FF3.6 */
background-image: -ms-linear-gradient(top, #00aeef, #ffffff); /* IE10 */
background-image: -o-linear-gradient(top, #00aeef, #ffffff); /* Opera 11.10+ */
background-image: linear-gradient(top, #00aeef, #ffffff);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#00aeef', EndColorStr='#ffffff'); /* IE6–IE9 */