Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Jquery排序表未显示红色箭头_Javascript_Jquery_Jquery Ui Sortable - Fatal编程技术网

Javascript Jquery排序表未显示红色箭头

Javascript Jquery排序表未显示红色箭头,javascript,jquery,jquery-ui-sortable,Javascript,Jquery,Jquery Ui Sortable,我使用for my table来拖动和排序元素。 但当我开始拖动项目时,显示红色箭头时出现问题。红色箭头似乎不见了……这里有人知道如何显示它吗 以下是我迄今为止尝试过的JavaScript代码: $(document).ready(function () { $('.sorted_table').sortable({ containerSelector: 'table', itemPath: '> tbody',

我使用for my table来拖动和排序元素。 但当我开始拖动项目时,显示红色箭头时出现问题。红色箭头似乎不见了……这里有人知道如何显示它吗

以下是我迄今为止尝试过的JavaScript代码:

$(document).ready(function () {
        $('.sorted_table').sortable({
            containerSelector: 'table',
            itemPath: '> tbody',
            itemSelector: 'tr',
            placeholder: '<tr class="placeholder"/>'
        });
});
$(文档).ready(函数(){
$('.sorted_table')。可排序({
containerSelector:'表',
itemPath:“>tbody”,
itemSelector:'tr',
占位符:“”
});
});
以下是相关的html:

<table id="listOfFile" class="table table-hover sorted_table">
                    <thead class="head">
                        <tr>
                            <td class="filename">File name</td>
                            <td class="type">Type</td>
                            <td class="detail">Details</td>
                            <td class="status">Status</td>
                            <td></td>
                        </tr>
                    </thead>
                    <tbody class="body">
                    </tbody>
                </table>

文件名
类型
细节
地位

您需要添加样式。。。。大概是这样的:

/**定义箭头**/
.sorted_table tr.占位符:之前{
内容:“;
宽度:0;
身高:0;
页边顶部:-5px;
左:-5px;
顶部:-4px;
边框:5px实心透明;
左边框颜色:红色;
边界权:无;
}