Jquery 渐变色Aspx
我想在我的代码中添加渐变色,我是这方面的新手Jquery 渐变色Aspx,jquery,html,asp.net,Jquery,Html,Asp.net,我想在我的代码中添加渐变色,我是这方面的新手 <script> function OnEndUpdate() { $("div:contains('Yahoo')")[32].style.backgroundColor = "green"; 函数onnedupdate(){ $(“div:contains('Yahoo')”)[32]。style.backgroundColor=“绿色”; 我不知道你想要用“`$”(“div:contains('Yahoo
<script>
function OnEndUpdate() {
$("div:contains('Yahoo')")[32].style.backgroundColor = "green";
函数onnedupdate(){
$(“div:contains('Yahoo')”)[32]。style.backgroundColor=“绿色”;
我不知道你想要用“`$”(“div:contains('Yahoo')[32]”“``但是你可以应用这样的梯度$(div).css({background:'linear-gradient(green,blue,green)})
实际上你想要的是什么请澄清你的需求..但是你可以应用一个不同的梯度,像这样===>>$('block')。css({background background:-webkit渐变(线性、左上、左下、从(#ccc)到(#000))”;