数据表jquery:奇怪的排序箭头 [英] jquery DataTables: weird sort arrows

查看:316
本文介绍了数据表jquery:奇怪的排序箭头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用引导工作在Django站点上。我得到这些排序箭头任何jquery datatable。任何想法如何获得默认的

解决方案

这些箭头表示你请使用 Bootstrap样式。如果要使用默认样式,请使用 class =display 属性,如下所示:

 < table id =exampleclass =displaycellspacing =0width =100%> 
...
< / table>

您还需要包含CSS文件作为默认样式。您可以使用下载构建器生成CSS / JS文件,然后选择数据表选项样式部分。


Working on a Django site with bootstrap. I'm getting these sort arrows for any jquery datatable. Any idea how to get the default ones shown here?

解决方案

These arrows indicate that you're using Bootstrap styling. If you want to use default styling use class="display" attribute for your table as shown below:

<table id="example" class="display" cellspacing="0" width="100%">
...
</table>

You also need to include CSS file for default style. You can generate your CSS/JS files using download builder and select DataTables option in Styling section.

这篇关于数据表jquery:奇怪的排序箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆