gpt4 book ai didi

CSS悬停: aligning on bottom: how to align on top?

转载 作者:太空宇宙 更新时间:2023-11-04 14:30:21 27 4
gpt4 key购买 nike

Before

on rollover

这是CSS:

.divPhoto {
border:1px solid #999;
width:140px;
height:140px;
border-radius:3px;
background-color:#EEE;
display:inline-block;
margin:10px;
transition:0.5s;
overflow:hidden;
}
.divPhoto:hover {
border:1px solid #0000FF;
background-color:#CCC;
cursor:pointer;
height:175px;
}



foreach($photos as $photo) { ?>

<div class="divPhoto" >
<a class="fancybox" data-fancybox-group="gallery" href="upload/<?=$photo->filename?>"><img class="img-polaroid" src="upload/thumb/<?=$photo->filename?>"></a>
<input type="button" class="btn btnEffacer" value="effacer" style="margin-left:30px;" data="<?=$photo->id?>" />
</div>


<? } ?>

关于将悬停在底部而不是顶部对齐有什么想法吗?因为现在悬停图像时所有图片都在移动

最佳答案

.divPhoto 规则的 vertical-align:top 就足够了。

关于CSS悬停: aligning on bottom: how to align on top?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19234669/

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