表格拖动备份

<style type="text/css">
       #add_decLists_table tr {
           border-bottom: 1px solid #e6e6e6;
           cursor: n-resize;
       } 
</style>
<script type="text/javascript">
          var fixHelper = function(e, ui) {
            ui.children().each(function() {
                $(this).width($(this).width());
            });
            return ui;
        };
        setTimeout(function(){ 
            $("#add_decLists_table").sortable({
                helper: fixHelper,
                items: '> tr',
                forcePlaceholderSize: true,
                stop: function (event, ui) {
                    resetTrNum('add_decLists_table'); 
                }
            });
            // .disableSelection()研究下这个的意义好像这里没啥作用,影响了火狐
        }, 2000);

</script>

 

posted @ 2022-08-12 17:15  薛柏梁  阅读(5)  评论(0编辑  收藏  举报