jquery 插件 任意位置浮動固定層
更新時間:2008年12月25日 15:21:14 作者:
可以讓指定的層浮動到網(wǎng)頁上的任何位置,當滾動條滾動時它會保持在當前位置不變,不會產(chǎn)生閃動
/*任意位置浮動固定層*/
/*沒劍(http://regedit.cnblogs.com) 08-03-11*/
/*說明:可以讓指定的層浮動到網(wǎng)頁上的任何位置,當滾動條滾動時它會保持在當前位置不變,不會產(chǎn)生閃動*/
/*調(diào)用:
1 無參數(shù)調(diào)用:默認浮動在右下角
$("#id").floatdiv();
2 內(nèi)置固定位置浮動
//右下角
$("#id").floatdiv("rightbottom");
//左下角
$("#id").floatdiv("leftbottom");
//右下角
$("#id").floatdiv("rightbottom");
//左上角
$("#id").floatdiv("lefttop");
//右上角
$("#id").floatdiv("righttop");
//居中
$("#id").floatdiv("middle");
3 自定義位置浮動
$("#id").floatdiv({left:"10px",top:"10px"});
以上參數(shù),設(shè)置浮動層在left 10個像素,top 10個像素的位置
*/
在線演示http://img.jb51.net/online/jquery.floatDiv/demo.htm
文件打包http://img.jb51.net/online/jquery.floatDiv/jquery.floatDiv.rar
/*沒劍(http://regedit.cnblogs.com) 08-03-11*/
/*說明:可以讓指定的層浮動到網(wǎng)頁上的任何位置,當滾動條滾動時它會保持在當前位置不變,不會產(chǎn)生閃動*/
/*調(diào)用:
1 無參數(shù)調(diào)用:默認浮動在右下角
$("#id").floatdiv();
2 內(nèi)置固定位置浮動
//右下角
$("#id").floatdiv("rightbottom");
//左下角
$("#id").floatdiv("leftbottom");
//右下角
$("#id").floatdiv("rightbottom");
//左上角
$("#id").floatdiv("lefttop");
//右上角
$("#id").floatdiv("righttop");
//居中
$("#id").floatdiv("middle");
3 自定義位置浮動
$("#id").floatdiv({left:"10px",top:"10px"});
以上參數(shù),設(shè)置浮動層在left 10個像素,top 10個像素的位置
*/
在線演示http://img.jb51.net/online/jquery.floatDiv/demo.htm
文件打包http://img.jb51.net/online/jquery.floatDiv/jquery.floatDiv.rar
相關(guān)文章
JQuery的html(data)方法與<script>腳本塊的解決方法
在使用Jquery的html(data)方法執(zhí)行寫數(shù)據(jù)到Dom元素時遇到一個問題:在data參數(shù)中包含script腳本塊的時候,html(data)方法的執(zhí)行結(jié)果與預(yù)期不符2010-03-03
簡單易用的基于jQuery版仿新浪微博向下滾動效果(附DEMO)
jquery版,簡單易用的jQuery 版仿新浪微博 向下滾動效果,現(xiàn)在越來越發(fā)現(xiàn)jquery太強大咯,哈哈。2011-02-02
jQuery length 和 size()區(qū)別總結(jié)
這篇文章主要介紹了jQuery length 和 size()區(qū)別總結(jié),在這里length是屬性,size()是方法,需要的朋友可以參考下2018-04-04
easyUI使用分頁過濾器對數(shù)據(jù)進行分頁操作實例分析
這篇文章主要介紹了easyUI使用分頁過濾器對數(shù)據(jù)進行分頁操作,結(jié)合實例形式詳細分析了easyUI分頁過濾器對數(shù)據(jù)進行分頁操作具體步驟與相關(guān)操作技巧,需要的朋友可以參考下2020-06-06

