Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.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
Html 如何禁用特定表列中的类?_Html_Twitter Bootstrap_Css - Fatal编程技术网

Html 如何禁用特定表列中的类?

Html 如何禁用特定表列中的类?,html,twitter-bootstrap,css,Html,Twitter Bootstrap,Css,我不确定这是否可能。 无论如何,我想禁用。从一列排序类,该类是引导类。请检查URL图像以了解更多信息 谢谢。我想你的代码是这样的 <th><b>#</b> <i class="fa fa-fw fa-sort"></i></th> 根据您的屏幕截图,我假设这是一个通过引导数据表增强的表。在这种情况下,更全面的解决方案可能是在JS配置中使用columnDefs选项: 到目前为止你都试了些什么?还提供代码以更好地理解try

我不确定这是否可能。 无论如何,我想禁用。从一列排序类,该类是引导类。请检查URL图像以了解更多信息


谢谢。

我想你的代码是这样的

<th><b>#</b> <i class="fa fa-fw fa-sort"></i></th>

根据您的屏幕截图,我假设这是一个通过引导数据表增强的表。在这种情况下,更全面的解决方案可能是在JS配置中使用
columnDefs
选项:


到目前为止你都试了些什么?还提供代码以更好地理解try指针事件:none;对于您正在使用哪个表插件的列?嗨!如果您在堆栈溢出时签出代码以备将来使用,这会更好-非常感谢。
th:nth-child(1) .fa-sort{
  display:none;
}
$('#example').dataTable( {
  "columnDefs": [
    { "orderable": false, "targets": 0 }
  ]
});