具体如下:
<body>
<?php
$orig_path='./img';
$file=scandir($orig_path);//获取所有文件名称?>
<div style='width:500px;'>
<div class='pic_total' style='width:100%'>
<?php for($i=2;$i<5;$i++){
?>
<ul class='pic_cell' style='float:left'>
<li style='list-style-type:none;'><img src='./img/<?php echo $file[$i];?>'></img></li>
</ul>
<?php }?>
</div>
<div><input type='submit' value='1234'></input> </div>
</div>
</body>
如图所示:按钮1234在不改变宽度的情况下,如何在另一行显示