jQuery css gradient

后端 未结 2 934
别跟我提以往
别跟我提以往 2020-12-03 22:46

To have a gradient background on an element I do something like this:

.css(\'filter\',\'progid:DXImageTransform.Microsoft.gradient(startColorstr=\\\'#FFFFFF\         


        
相关标签:
2条回答
  • 2020-12-03 23:08

    there is a jQuery plugin used to work with gradient. i have never used it but it looks simple

    http://plugins.jquery.com/project/gradient

    heres how to use it :

    http://www.julien-verkest.fr/13/11/2007/jquery-gradient-le-plugin-qui-permet-de-creer-dynamiquement-des-backgrounds-degrades

    or you could use use Gradientz

    http://jquerystyle.com/2009/08/06/gradientz

    Gradientz looks even more complete and easy to use. Up to you good luck buddy.

    0 讨论(0)
  • 2020-12-03 23:16

    Nope. jQuery doesn't have a native implementation of vendor-prefixes. Not very surprising, too; jQuery is a JavaScript library, designed to make JavaScript cross-browser.

    Check out CSS3 Finalize for a plugin.

    0 讨论(0)
提交回复
热议问题