Get element CSS3 background-color gradient with JS
问题 At the moment I use the following JS (jQuery) to find the background color (as rgb) of several other divs: $theColor = $(this).css("background-color"); It works perfectly, except with CSS3 gradients. As an example, I have the following css to make the background of a div look similar to a post-it note: background: #FFFAAD; /* old browsers */ background: -moz-linear-gradient(top, #FFFAAD 0%, #FFF47D 100%); /* firefox */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,