gpt4 book ai didi

html - img 溢出是怎么回事?

转载 作者:太空宇宙 更新时间:2023-11-04 02:53:35 25 4
gpt4 key购买 nike

当我悬停图标时,img 的溢出会发生变化。您可以在这里找到所有代码: https://jsfiddle.net/DTcHh/12122/

只需将鼠标悬停在图标上

P.S. I couldn't use z-index:-1, because part of my img goes under header's background... here is screen: https://monosnap.com/file/vfivmX7MGJl8bobULiipeToilyTZIx

标题样式:

.header {
background: url("../img/background.png") 100% 100%;
background-size: cover;
max-width: 1920px;
max-height: 900px;
color: white;}

最佳答案

只需从 imgCSS 中删除 position: relative;

.avatar img {
vertical-align: bottom;
position: relative; //remove this style
}

关于html - img 溢出是怎么回事?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32583816/

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