-
/*ie6 hack*/ * html, * html body { background-image: url(about:blank); background-attachment: fixed; } * html #menu { /*position: fixed;*/ position: absolute; top: expression(((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+100+'px'); }查看全部
-
使用錨點(diǎn)可以在文檔中設(shè)置標(biāo)記,這些標(biāo)記通常放在文檔的頂部查看全部
-
特效技術(shù)點(diǎn)查看全部
-
解決IE6不兼容fixed屬性的方法,在css中加入: /*ie6 hack*/ *html,*html body{ background-image:url(about:blank); background-attachment:fixed; } *html menu{ position:absolute; top:expression(((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+100+'px'); }查看全部
-
算法: 1、通過(guò)$(document).scrollTop(),獲得滾動(dòng)條據(jù)頂部的高度top 2、find()找到所有的class為“item”標(biāo)簽 3、通過(guò)offset().top獲得標(biāo)簽距離頂部的高度 4、通過(guò)each()循環(huán)比較兩個(gè)高度值,找出當(dāng)前顯示div 5、重置選中狀態(tài) 6、通過(guò)find("[href="+N+"]").addClass()實(shí)現(xiàn)修改選中標(biāo)簽 1、$(selector).scroll(function(){})--滾動(dòng)條滾動(dòng)監(jiān)聽(tīng)方法 2、$(selector).scrollTop()--滾動(dòng)條垂直偏移量設(shè)置和獲取方法 3、$(selector).offset().top/.left--文檔的豎直和橫向偏移量查看全部
-
/*ie6 hack*/ * html, * html body { background-image: url(about:blank); background-attachment: fixed; } * html #menu { /*position: fixed;IE6模仿固定定位*/ position: absolute; top: expression(((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+100+'px'); }查看全部
-
錨點(diǎn)——網(wǎng)頁(yè)制作中超鏈接的一種,又叫命名錨記,是一種頁(yè)面內(nèi)的超鏈接。查看全部
-
特效需要掌握的技術(shù)點(diǎn)查看全部
-
特效所需要掌握的技術(shù)點(diǎn) scroll scrollTop offset查看全部
-
特效設(shè)計(jì)的技術(shù)點(diǎn) 錨點(diǎn) 滾動(dòng)條定位的事件和方法(借助jQuery)查看全部
-
導(dǎo)航與滾動(dòng)條之間的定位關(guān)聯(lián),利用距離來(lái)判斷 offset-top查看全部
-
重點(diǎn)難點(diǎn)分析查看全部
-
定位導(dǎo)航特效之分析篇查看全部
-
用原生js編寫代碼時(shí)候需要注意瀏覽器的兼容性,特別是IE的查看全部
-
jquary方法查看全部
舉報(bào)
0/150
提交
取消