Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.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/python-2.7/5.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
Css GoogleChrome和Firefox的引导表显示不同_Css_Twitter Bootstrap_Google Chrome_Firefox - Fatal编程技术网

Css GoogleChrome和Firefox的引导表显示不同

Css GoogleChrome和Firefox的引导表显示不同,css,twitter-bootstrap,google-chrome,firefox,Css,Twitter Bootstrap,Google Chrome,Firefox,我使用bootstrap表来显示我的数据,它在googlechrome上运行良好,但在Firefox上无法正常工作 这是我在谷歌chrome上看到的。 这是我在firefox上看到的。 这是我的密码 echo<<<EOF <div class="x_content"> <table id="example" class="table table-bordered table-hover" style='font-size:13px;'>

我使用bootstrap表来显示我的数据,它在googlechrome上运行良好,但在Firefox上无法正常工作

这是我在谷歌chrome上看到的。 这是我在firefox上看到的。

这是我的密码

echo<<<EOF
  <div class="x_content">
     <table id="example" class="table table-bordered table-hover" style='font-size:13px;'>
                                    <thead>
                                        <tr height="10">
                                            <th class="col-sm-1">#</th>
                                            <th class="col-sm-8">Leave Category</th>
                                            <th>Is Active </th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                     <tbody>

EOF;
$this->fetch(); //this is the function to get data from database
echo<<<EOF
      </div>
    </div>
    </div>
EOF;

echo引导在使用内置网格时有它的依赖项

<div class="container"> <!-- It can be either container or container-fluid -->
 <div class="row"> <!-- Similar to the upper one -->
  <div class="col-md-12"> <!-- col-xs-*, col-md-*, col-lg-* -->
   ...
  </div>
 </div>
</div>

...

检查引导文档,特别是网格:

使用内置网格时,引导有它的依赖项

<div class="container"> <!-- It can be either container or container-fluid -->
 <div class="row"> <!-- Similar to the upper one -->
  <div class="col-md-12"> <!-- col-xs-*, col-md-*, col-lg-* -->
   ...
  </div>
 </div>
</div>

...

检查引导文档,尤其是网格:

如何使用php构建html并不重要。您更愿意向我们展示生成的整个html代码,因为仅通过查看html错误的摘录很难发现html错误。@Amarnasan如果我删除javascript部分,布局将看起来很好,我们仍然需要查看完成的html代码。@Epodax我已经发现了问题,一旦添加了“sDom”:“Tlfrtip”,它就会正常工作,thanksIt与如何使用php构建html无关。您更愿意向我们展示生成的整个html代码,因为仅通过查看html错误的摘录很难发现html错误。@Amarnasan如果我删除javascript部分,布局会很好,我们仍然需要查看完成的html代码。@Epodax我已经发现了问题,一旦添加了“sDom”:“Tlfrtip”,它就会工作正常,谢谢