我正在创建一个品牌幻灯片,将所有相关品牌显示到特定类别,我正在使用pixedelic相机滑块,问题是滑块是独立工作但在我的主页面中实现时,标签不会显示这是内部div的css:
.brandImg{
min-width:717px;
max-width:1332px;
width:100%;
}
.brandImg img{
width:100%;
height:100%;
position:relative;
top:0px;
left:0px;
}
.brandImg div{
width:20%;
height:30%;
background-color:rgba(255,255,255,0.8);
float:left;
margin:2%;
margin-top:0.5%;
margin-bottom:0.5%;
background-repeat:no-repeat;
background-size:contain;
background-position:center;
}
.brandImg div:hover{
cursor:pointer;
}
这是php / html文件:
<div class="fluid_container" >
<div class="camera_wrap camera_emboss pattern_1" id="camera_wrap_4" >
<div data-src="images/transparent.png">
<div class="brandImg">
<?php for($i=0;$i<12;$i++){?>
<div style="background-image:url('images/brands/<?php echo $rowbrands[0][2]?>/<?php echo $rowbrandscat[0][1]?><?php if($_GET['section']!=0){echo '/'.$rowbrandsubcat[0][2];}?>/<?php echo $rowimage[$i][3];?>')"></div>
<?php }?>
</div>
</div>
<?php if($cimage>12){?>
<div data-src="images/transparent.png">
<div class="brandImg">
<?php for($i=12;$i<$cimage;$i++){?>
<div style="background-image:url('images/brands/<?php echo $rowbrands[0][2]?>/<?php echo $rowbrandscat[0][4]?><?php if($_GET['section']!=0){echo '/'.$rowbrandsubcat[0][5];}?>/<?php echo $rowimage[$i][6];?>')"></div>
<?php }?>
</div>
</div>
<?php }?>
</div><!-- #camera_wrap_3 -->
</div><!-- .fluid_container -->