-
IE6不支持: position:fixed; /*IE6 hack*/ *html, *html body{ background-image:url(about:blank); background-attachment:fixed; } * html #menu{ /*position:fixed;*/ position:absolute; top:expression(((e=documentElement.scrollTop)?e:document.body.scrollTop)+100+'px'); }查看全部
-
網(wǎng)頁(yè)定位導(dǎo)航特效查看全部
-
scroll([data],fn):適用于可滾動(dòng)元素和window對(duì)象。 例:$(window).scroll(fucntion(){}); scrollTop([val]):設(shè)置、獲取匹配元素相對(duì)滾動(dòng)條頂部的偏移 offset()查看全部
-
使用JS實(shí)現(xiàn)網(wǎng)頁(yè)定位導(dǎo)航特效特效 var top = document.documentElement.scrollTop || document.body.scrollTop;查看全部
-
hahhhahha查看全部
-
shizhangdaima查看全部
-
menu.find("[href="+currentId+"]").addClass("current");中 [href="+currentId+"]" 為什么要用" [] "號(hào).查看全部
-
IE6不支持: position:fixed; /*IE6 hack*/ *html, *html body{ background-image:url(about:blank); background-attachment:fixed; } * html #menu{ /*position:fixed;*/ position:absolute; top:expression(((e=documentElement.scrollTop)?e:document.body.scrollTop)+100+'px'); }查看全部
-
運(yùn)用css和jQuery,實(shí)現(xiàn)導(dǎo)航菜單在右側(cè)絕對(duì)定位顯示,并且可以在滾動(dòng)時(shí)根據(jù)滾動(dòng)條的位置自動(dòng)設(shè)置導(dǎo)航菜單的焦點(diǎn)。查看全部
-
jQuery的offset()方法會(huì)返回一個(gè)對(duì)象,包含top和left屬性。查看全部
-
IE6不支持: position:fixed; /*IE6 hack*/ *html, *html body{ background-image:url(about:blank); background-attachment:fixed; } * html #menu{ /*position:fixed;*/ position:absolute; top:expression(((e=documentElement.scrollTop)?e:document.body.scrollTop)+100+'px'); }查看全部
-
jQuery的offset()方法會(huì)返回一個(gè)對(duì)象,包含top和left屬性。查看全部
-
整體jQuery代碼實(shí)現(xiàn)查看全部
-
$("content").find(".item")的效率比 $("content .item")要高,jQ通過(guò)ID篩選比class效率高查看全部
-
使用錨點(diǎn)可以在文檔中設(shè)置標(biāo)記,這些標(biāo)記通常放在文檔的頂部查看全部
舉報(bào)
0/150
提交
取消