Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.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
Php Tablesorter 2.17.7 CSS不工作?_Php_Css_Tablesorter - Fatal编程技术网

Php Tablesorter 2.17.7 CSS不工作?

Php Tablesorter 2.17.7 CSS不工作?,php,css,tablesorter,Php,Css,Tablesorter,正如标题所说,CSS不适用于我的表格。。我有所有的JS功能,但CSS不工作。。。 我有3个文件夹:Includes、Images和tablesorter。所有其他页面都在这些文件夹(项目根目录)之外 **** 我将header.php包含在其他文件中,除了tablesorter的CSS之外,一切都正常工作 这是我应用tablesorter的代码的一部分 <script> $(document).ready(function(){ $("#

正如标题所说,CSS不适用于我的表格。。我有所有的JS功能,但CSS不工作。。。 我有3个文件夹:Includes、Images和tablesorter。所有其他页面都在这些文件夹(项目根目录)之外


****
我将header.php包含在其他文件中,除了tablesorter的CSS之外,一切都正常工作

这是我应用tablesorter的代码的一部分

<script>
        $(document).ready(function(){ 
            $("#tablica").tablesorter()}
        );
</script>

<table id="table" class="tablesorter">

$(文档).ready(函数(){
$(“#tablica”).tablesorter()}
);
表中有AD->tr->th和tbody->tr->td,它是从数据库中填充的。。。 再一次:我有Javascript功能,但没有一个CSS属性适用。

默认情况下,“tablesorter default”类名应用于表。如果要应用绿色主题,需要加载“theme.green.css”文件(如上所示),并设置
theme
选项:

$("#tablica").tablesorter({
  theme: 'green'
});
或者只需将“tablesorter green”类名添加到表中:

<table id="tablica" class="tablesorter-green">
<table id="tablica" class="tablesorter-green">
$("#tablica").tablesorter({
  theme : 'jui', // theme "jui" or "bootstrap"
  headerTemplate : '{content} {icon}',

  // uitheme widget is contained within the jquery.tablesorter.widgets.js file
  widgets : ['uitheme', 'zebra']
});