gpt4 book ai didi

php - 并排显示 CSS 框

转载 作者:行者123 更新时间:2023-11-28 18:28:39 28 4
gpt4 key购买 nike

CSS代码

 #folder {  
width: 105px;
background: #BABABA;
position: relative;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 0px 10px 10px 10px;
}

这是创建盒子的CSS代码

php代码

<link rel="stylesheet" type="text/css" href="fold.css" /></style>
<?php
function listFolderFiles($dir,$exclude){
$ffs = scandir($dir);
echo '<ul class="ulli">';
foreach($ffs as $ff){
if(is_array($exclude) and !in_array($ff,$exclude)){
if($ff != '.' && $ff != '..'){
if(!is_dir($dir.'/'.$ff)){

} else {
echo '<div class=wrap><div id=folder><li>'.$ff.'</div></div>';
}
if(is_dir($dir.'/'.$ff)) listFolderFiles($dir.'/'.$ff,$exclude);
echo '</li>';
}
}
}
echo '</ul>';
}

listFolderFiles('.',array('index.php','edit_page.php'));
?>

它显示一个下面的框如何并排显示框

最佳答案

对于并排的 div 元素,您需要添加

float:left

在你的 css 类中会为你工作。

检查示例:DIV TABLE

关于php - 并排显示 CSS 框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14973058/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com