-
$(document).ready(function(){ $(".car").hover( function(){ $(this).animate({top:"500px"},600);}, function(){ $(this).animate({top:"0"},600);} ); });查看全部
-
$(document).ready(function() { $(".car").hover(function() { $(".car").animate({top:"500px"},{duration:1000}); }, function() { $(".car").animate({top:"0px"},{duration:1000}); }) });查看全部
-
jQuery實(shí)現(xiàn)動(dòng)畫效果 $(document).ready(function(){ $('.boxgrid').hover(function(){ $(".car").animate({left:'0px'},{duration:300}); }, function() { $(".car").animate({left:'720px'},{duration:300}); }); }); 需要css樣式的絕對定位和相對定位的配合查看全部
-
關(guān)鍵代碼查看全部
-
實(shí)現(xiàn)的jQuery知識(shí)點(diǎn)查看全部
-
CSS樣式定位車圖片位置 1、在style.css文件中的11行,輸入下面代碼: position: absolute; 2、在style.css文件中的12行,輸入下面代碼: top: 0; 3、在style.css文件中的13行,輸入下面代碼: left:720px; 用jQuery代碼讓車動(dòng)起來 1、在script.js文件中的3行,輸入下面代碼: $(".car").animate({left:'0px'},{duration:300}); 2、在script.js文件中的5行,輸入下面代碼: $(".car").animate({left:'720px'},{duration:300});查看全部
-
html+css+jq查看全部
-
jQuery查看全部
-
js核心代碼:查看全部
-
完整代碼:查看全部
-
關(guān)鍵代碼:查看全部
-
用jQuery實(shí)現(xiàn)動(dòng)畫效果:查看全部
-
JQ部分內(nèi)容查看全部
-
$(document).ready(function(){ /* $(selector).hover(inFunction,outFunction) hover() 方法規(guī)定當(dāng)鼠標(biāo)指針懸停在被選元素上時(shí)要運(yùn)行的兩個(gè)函數(shù)。該方法觸發(fā) mouseenter 和 mouseleave 事件。 */ $('.car').hover(function(){ $('.car').animate({top:500},{duration:500}); },function(){ $('.car').animate({top:0},{duration:500}); }); });查看全部
-
需要在看一次查看全部
舉報(bào)
0/150
提交
取消