jqueryデータテーブルhttps://www.datatables.net/を使用しています。 私は//cdn.datatables.net/1.10.11/css/jquery.dataTables.min.cssをインポートする必要がありますか?jqueryデータテーブルを使用するにはどのようなデータをインポートする必要がありますか?
私はちょうどhttps://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.jsを輸入しました。それも動作するようです。
以下は、私のWebページのソースコードの一部です。 (このようscending、sorting_asc、reportsTable_info、...など)のCSSクラスから来るのか
<table id="reportsTable" class="table dataTable no-footer" role="grid" aria-describedby="reportsTable_info">
<thead>
<tr role="row">
<th class="col-md-5 sorting_asc" tabindex="0" aria-controls="reportsTable" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Report Name: activate to sort column descending" style="width: 655px;">Report Name</th>
<th class="col-md-2 sorting" tabindex="0" aria-controls="reportsTable" rowspan="1" colspan="1" aria-label="Created Date: activate to sort column ascending" style="width: 240px;">Created Date</th>
<th class="col-md-2 sorting" tabindex="0" aria-controls="reportsTable" rowspan="1" colspan="1" aria-label="Last Modified Date: activate to sort column ascending" style="width: 240px;">Last Modified Date</th>
<th class="col-md-2 thead-schedule sorting_disabled" rowspan="1" colspan="1" aria-label="Scheduling" style="width: 240px;">Scheduling</th>
<th class="col-md-1 sorting_disabled" rowspan="1" colspan="1" aria-label="" style="width: 101px;"></th>
</tr>
</thead>
<tbody id="reportTableBody">
<tr class="report-entry odd" role="row">
<td class="sorting_1"><a href="reports/135">dddd123678</a></td>
<td>
<time>4/13/2016, 14:41</time>
</td>
<td>
<time>4/14/2016, 14:02</time>
</td>
</tr>
</tbody>
</table>
? websiteによると
あなたが言っていることは明らかではありません。 *出力HTMLには、CSSファイルに定義されているCSSタグが含まれています。*出力コードを共有できますか? – Aziz
@Aziz私の質問は、出力htmlファイルにいくつかのCSSタグが生成され、jsファイルのみがインポートされ、( '#example')DataTable()が呼び出される理由です。 – BAE