1
私はWindowsプラットフォーム上でtableToGrid関数を使用してテーブルをjqGridに変換しようとしています。何らかの理由で、行の高さが2倍になるのは、新しい行の記号がある場合です。誰かがそれが機能かバグかどうかを知っていますか?行の高さを普通にするために改行文字を無視するように振る舞いを変更するにはどうしたらいいですか?jqGridのtableToGridが、表のセルに改行文字が存在する場合、倍長の行を作成するのはなぜですか?
<head>
<script type="text/javascript">
$(document).ready(function() {
tableToGrid('#mytable', {
caption: "My converted table!",
pager: '#mypager',
multiselect: true,
height: 'auto',
gridview: true
});
});
</script>
</head>
<body>
<table id="mytable" cellspacing=0 cellpadding=1 border=1>
<thead>
<tr>
<th>Icon</th>
<th>Platform</th>
<th>Size</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="http://icons.iconarchive.com/icons/visualpharm/must-have/16/Properties-icon.png" alt=""></td>
<td>PC</td>
<td>12</td>
</tr>
<tr>
<td>
<img src="http://icons.iconarchive.com/icons/visualpharm/must-have/16/Properties-icon.png" alt="">
</td>
<td>Mac</td>
<td>15</td>
</tr>
</tbody>
</table>
<div id="mypager"></div>
</body>
</html>
はい。サンプルコードの2行目と1行目を参照してください。私はそのトリックに来る前に多くの時間を費やしていました。しかし、それはなぜ起こるのか答えません。私のバグのように見えます。 – myforums