現在、htmlページに結果を追加できるコードがあります。データベースからhtmlページへの画像の整列
これは追記コードです。
function casefeed(response) {
var arr = JSON.parse(response);
var i;
for(i = 0; i < arr.length; i++) {
$("#viewcase").append("<td><img src='" + serverURL()
+ "/images/"+ arr[i].Case_Pic + "' height='100'>"
+ "<td>" + arr[i].CaseTime + "</a></b></td>");
}
}
これは私のテーブルフォーマットです。
<table class="tile-table">
<tbody id = "viewcase">
<tr>
<td>
<div class="tile" style="background-position: -0px -0px;"></div>
</td>
<td>
<div class="tile" style="background-position: px -0px;"></div>
</td>
<td>
<div class="tile" style="background-position: -200px -0px;"></div>
</td>
<td>
<div class="tile" style="background-position: -300px -0px;"></div>
</td>
</tr>
</tbody>
</table>