CSS3 Transparency + Gradient
问题 RGBA is extremely fun, and so is -webkit-gradient , -moz-gradient , and uh... progid:DXImageTransform.Microsoft.gradient ... yeah. :) Is there a way to combine the two, RGBA and gradients, so that there\'s gradient of alpha transparency using the current/latest CSS specs. 回答1: Yes. You can use rgba in both webkit and moz gradient declarations: /* webkit example */ background-image: -webkit-gradient( linear, left top, left bottom, from(rgba(50,50,50,0.8)), to(rgba(80,80,80,0.2)), color-stop(.5