渐变的背景色

背景色的渐变

1)线性渐变

background: -webkit-linear-gradient(60deg,#fff 10%, #f00 30%, #0f0 50%, #00f 70%, #000);

通过色号进行背景色线性渐变

background: -webkit-linear-gradient(left top, rgba(122,156,233,.6) 30%, rgb(255,12,222) 60%, green 80%, #fff);

通过rgb进行背景色线性渐变

background: filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#abcdef',endColorstr='#f44add',GradientType='0');

background: filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#000000',GradientType='1');

通过filter进行设置

猜你喜欢

转载自www.cnblogs.com/rockyjs/p/11479724.html