私はXSL変換に基づいてXML結果を表示するために使用しているテーブルをドレスアップするのにDataTables を使用しています。私は技術的な意味(ページング、並べ替え、フィルタリング)からすべての作業をしていますが、私はThemeRollerのテーマをWebサイトのように見せることを試みています。ThemeRollerを使用すると助けが必要です
これまでのところ、私はその参照して、私のプロジェクトに次のファイルを追加しました:
<link type="text/css" href="css/custom-theme/jquery-ui-1.8.7.custom.css" rel="stylesheet"/>
をしてDataTableのウェブサイトごとに、次を使用してThemeRollerのテーマを有効に:
$(document).ready(function() {
$('#mainTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "two_button"
});
});
表が取得スタイリングされていますが、ヘッダー行が広すぎるため、1行に複数の行が表示されているように見えません。私が間違っていることを示す何か?非常に前もってありがとう。
HTMLコード:
<html>
<body>
<head runat="server">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" href="css/custom-theme/jquery-ui-1.8.7.custom.css" rel="stylesheet">
<script src="Scripts/jquery-1.4.4.min.js" type="text/javascript">
</script>
<script src="Scripts/jquery.dataTables.min.js" type="text/javascript">
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#example').dataTable({
"bJQueryUI": true
});
});
</script>
</head>
<table cellpadding="0" cellspacing="0" border="0" id="example" class="display">
<thead>
<tr>
<th>
<h3>Title</h3>
</th>
<th>
<h3>URL</h3>
</th>
<th>
<h3>Notes</h3>
</th>
<th>
<h3>
</h3>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="http://www.roperband.com">Jesse\'s Article</a>
</td>
<td>
<a href="http://www.roperband.com">http://www.roperband.com</a>
</td>
<td>Some of Jesse\'s notes</td>
<td>
</td>
</tr>
</tbody>
</table>
</body>
</html></span>
</div>
<div class="clear">
</div>
<div class="footer">
</div>
</form>
</body>
</html>
@Music Magi:何が起こっているのかのスクリーンショットを投稿できますか? –
htmlテーブルコードを置くことができますか? –
@Andrew http://imgur.com/BcNtZ –