-1
cols가 4가 된 후에 새 테이블 행 (tr)이 증가/생성되지 않습니까?
$<?php
$files = glob("images/hardware/*.*");
//$files1=glob("images/software/*.*");
?>
<div class="container">
<h3>Hardware Solutions</h3>
<table>
<tr>
<?php for ($j = 0; $j < count($files); $j++) {
$image = $files[$j];
//$imagePath=pathinfo($files[$j]);
//$imgdetail=implode(" ",$imagePath);
//echo ''.$imgdetail.'';
?>
<td>
<img src="<?php echo ''.$image.'';?>" width="300px" height="300px" style="text-align:center;padding:10px;"/>
<?php }?>
</td>
</tr>
</table>
여기에 나와있는 코드는 문제를 해결하기위한 시도의 증거가 없음을 보여줍니다. 또한 제안 된 문제는 레이아웃 문제를 해결할 방법이 부족합니다. – symcbean