I want to use gradients in my background and to be cross-platform I would like to set background with vendor prefixes:
background: -webkit-linear-gradient(red, blue);
background: -o-linear-gradient(red, blue);
background: -moz-linear-gradient(red, blue);
background: linear-gradient(red, blue);
How can I set multiple style.background
's on a HTMLElement
, using Javascript to support the vendor prefixes?
Update: I wish not to use jQuery or any other external library.
See Question&Answers more detail:os