Internet Explorer’s filter
CSS property (-ms-filter
from IE 8) allows you to do CSS gradients, a bit like the -webkit-gradient
and
Stop colors can be specified in #AARRGGBB
notation, where AA
represents the alpha. For example, #ffff0000
is fully-opaque red.
This produces a 100% red to 50% black horizontal gradient:
filter: progid:DXImageTransform.Microsoft.Gradient(
GradientType=1,
StartColorStr='#ffff0000',
EndColorStr='#80000000'
);
jsFiddle preview