大家知道html語言分行嗎?下面我們就給大家詳細介紹一下吧!
$files = scandir('.');
echo '';
$counter = 1;
$each_columns = 4;
foreach($files as $file_num => $file) {
if($file_num > 1){
$file = iconv("GBK","UTF-8",$file); //或者 iconv("gb2312","UTF-8",$value);
if(is_dir($file)){
$file = ''.$file.'';
if($counter % $each_columns == 1) {
echo '';
}
echo ''.$counter.$file.'';
if($counter % $each_columns == 0){
echo '';
}
$counter++;
}
}
}
$counter = $counter-1;
if($counter % $each_columns != 0){
for($i = 0; $i < ($each_columns-($counter)%$each_columns); $i++){
echo " ";
}
}
echo '';
相信大家已經學會html語言分行了吧!感謝大家對我們網站的支持!
相關推薦:
html語言的基本應用在哪裡