2015-11-18 50 views
1

我一直在试图添加数据表。图标定位不正确。 下面我有脚本datatable标题排序图标位置

增加,这是它的外观

enter image description here

<link href="~/Content/jquery.dataTables.css" rel="stylesheet" /> 
<script src="~/Scripts/jquery.dataTables.min.js"></script> 
<link href="~/Content/dataTables.bootstrap.min.css" rel="stylesheet" /> 
<link href="~/Content/jquery.dataTables_themeroller.css" rel="stylesheet" /> 
+1

'javascript'文件应该来后'css'文件 – Raviteja

+0

@IamRaviteja,怎么是相关的问题?它对图标的呈现方式没有任何影响。 – davidkonrad

回答

0

它只需要低于CSS。

<link href="~/Content/jquery.dataTables.css" rel="stylesheet" /> 
<script src="~/Scripts/jquery.dataTables.min.js"></script> 
<link href="~/Content/jquery.dataTables_themeroller.css" rel="stylesheet" /> 
0

您包括默认的风格,引导和jQuery UI三个不同的CSS文件。你应该选择一个你会使用的,并删除其他人。

manual

对于CSS应该只包括一个单一的文件作为造型库将提供该表的核心样式选项。 CSS文件格式为dataTables.{style}.css(例如,用于Bootstrap的dataTables.bootstrap.css)。

+0

感谢您的指针。 – coder771