自己寫的乙個固定表頭JS函式

2021-05-24 15:05:10 字數 494 閱讀 8918

//用於固定表頭

//固定表頭使用方法:

/* 1.新增固定表頭容器控制項divheader

*    top:expression(this.offsetparent.scrolltop-82) 數字82是該表頭到頁面頂部的距離,目前該數值須根據具體情況手動加入

* 2.定義原顯示表頭如:

*    要在該表頭標籤內新增 注釋表頭,在程式執行時會用到

* 3.做好以上兩步以後,只需要在body onscroll事件中加入showfixedheader事件即可即:

*/function showfixedheader()else

headerhtml=''+headerhtml+'';

ctrlfixedheader.innerhtml=headerhtml;

ctrlfixedheader.style.top=divheader.offsetparent.scrolltop-scroll_height;

}

自己寫的乙個Js小外掛程式

這是效果圖。上面乙個過濾標籤。下面彈出框,選擇日,周,月。我的用途主要是報表查詢的時候根據這 種型別來查詢資料用的。這裡分享下 js function container.find filterdiv,filterparamdiv mouseout function var ps extend we...

自己寫乙個LIST

pragma once forward declarations templateclass clistnode templateclass clist template class clistnode void insertafter t data template void clistnode ...

自己寫乙個框架

自己寫乙個框架 單入口mvc 類 庫 屬於擴充套件 乙個好的配置檔案和讀取功能 db介面 dispather.php index.php dispather 分析controller action 根據分析controller action 動態載入 引入乙個自動載入機制 controller.ph...