好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

js实现htmltable行,列锁定_html/css_WEB-ITnose

js实现html table 表头,指定列锁定

实现效果如下:

感兴趣的朋友可以直接复制出来运行看效果。

  1    2    3    4      new document   5         7       8        9         function FixTable(TableID, FixColumnNumber, width, height) { 10             ///   11             ///     锁定表头和列 12             ///       sorex.cnblogs测试数据   13             ///   14             ///   15             ///     要锁定的Table的ID 16             ///   17             ///   18             ///     要锁定列的个数 19             ///   20             ///   21             ///     显示的宽度 22             ///   23             ///   24             ///     显示的高度 25             ///   26             if ($("#" + TableID + "_tableLayout").length != 0) { 27                 $("#" + TableID + "_tableLayout").before($("#" + TableID)); 28                 $("#" + TableID + "_tableLayout").empty(); 29             } 30             else { 31                 $("#" + TableID).after("

查看更多关于js实现htmltable行,列锁定_html/css_WEB-ITnose的详细内容...

  阅读:31次