最新回答 / 打代碼的Popo
this是誰調用就指向誰,當i元素調用onmouseover方法,里面的匿名函數(shù)中的this是指向li這個元素的對象,而調用setInterval方法的對象實際是window對象,在setInterval里面的this其實是指向window對象,這里涉及到JavaScript對象方面的問題,可以自己找資料詳細了解
2018-03-17
已采納回答 / 網(wǎng)絡偵探
background-position 屬性設置背景圖像的起始位置。background-position:?x% y%? ? ??(左上角是 0% 0%。右下角是 100% 100%。通俗記法:x向右為正, y向下為正?)第一個值是水平位置,第二個值是垂直位置。background-position:0 -30px;使背景圖片水平方向不移動, 垂直方向上向上移動30像素.建議你直接查文檔:http://www.w3school.com.cn/cssref/pr_background-position.a...
2018-03-10
最新回答 / 慕萊塢833307
? clearInterval(This.time);-->在前;This.time=setInterval(function(){? -->在后先定義才行吧
2018-01-27
最新回答 / 三生草
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-...
2017-12-28
最新回答 / data_man7
用 jquery是“ <script>??????????????????????????????? ......?????????????????????????????? $("a").stop().animate({“width”:"160px"},200);?????????????????????????????? ......????????????????????? </script>”
2017-12-28
最新回答 / qq_fzjiwillbegy_0
a:hover{ color:#fff;background-position:0 -30px;}背景圖片要下移,不然color看不到
2017-12-27