Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 渐变色Aspx_Jquery_Html_Asp.net - Fatal编程技术网

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))”;