2010-07-08 49 views
0

是我的數據表不顯示,因爲css代碼?css腳本vs數據表腳本

<html> 
<head> 
    <title>OQC INSPECTION REPORT</title> 
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> 
    <link href="js/demo_table.css" rel="stylesheet" type="text/css" media="all"> 
     <script type="text/javascript" language="javascript" src="js/jquery-1.4.min.js"></script> 
     <script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script> 


    <style type="text/css"> 
      body  { font-family: Verdana; font-size:40%; } 
      label { width: 15em; float: left; } 
      label.error {display: none; float: none; color: red; padding-left: .5em; vertical-align: top; } 
      p { clear: both; } 
      .submit { margin-left: 12em; } 
      em { font-weight: bold; padding-right: 1em; vertical-align: top; } 
    </style> 

    <style type="text/css"> 
      body 
      { 
      font-family:Times new roman, verdana; 
      font-size:22px; 
      width: 900px; 
      height:70px; 
      margin-left: auto; 
      margin-right: auto; 
      background-image:url("wood_texture2.jpg"); 
      } 
    </style> 
    <script type="text/javascript"> 
      $(document).ready(function() { 
        var oTable; 
        $("#show").click(function(event){ 
            oTable = $("#datalist").dataTable({ 
                "bRetrieve" : true, 
                "bServerSide": true, 
                "bProcessing": true, 
                "sAjaxSource": 'showlist1.php', 
                "aaSorting" : [[1,"desc"]], 
                "aoColumns" : [ 
                    /*Line*/ null, 
                    /*Model*/ null, 
                    /*NIK*/ null 
                    ] 
              }); 
            }); 
         }); 
    </script> 
</head> 
<body></body> 
</html> 

回答

0

擺脫css,看看它是否仍然有效。

+0

datatable show但datagrid不是 – klox 2010-07-08 04:46:18

+0

我不知道'datagrid'是什麼。似乎沒有任何可以導致可見網格的CSS。我在這裏想到邊界和/或輪廓屬性。 – aaronasterling 2010-07-08 05:12:22

+0

對不起..我的意思是數據不showinside數據表 – klox 2010-07-08 06:28:20

0

你的CSS與它無關,除非我忽略了一些東西。

如果您還顯示了HTML,這將會很有幫助。

我建議用Firebug進行調試。


編輯

如果這實際上是在你的整個頁面,你的問題是你有它NO HTML元素。你需要幾個 - 我會重新閱讀文檔。

+0

我一直在使用螢火蟲,它顯示的結果,但數據表不顯示 – klox 2010-07-08 04:41:00

+0

已更新的答案。 – 2010-07-08 07:31:36

+0

更新的問題 – klox 2010-07-09 03:52:16