$(function(){
$(".test1").gradient({
from:      'ffff00',
to:        'ff0000',
direction: 'horizontal'//水平
});
$(".test2").gradient({
from:      'ffff00',
to:        'ff0000',
direction: 'vertical'//竖向
});