gpt4 book ai didi

css - 导致空白和水平滚动条的图像

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

通过重影我的 CSS 元素,我可以看到我的嘴巴图像正在创建额外的空白区域,但我不知道如何删除它。我试过 overflow hidden ,希望它能起作用,但它没有?链接到 codepen

.mouth{
top: 268px;
left: 273px;
position: relative;
overflow-x:hidden;
}

最佳答案

改用绝对定位。

.trumpframe{
position: relative;
}

.mouth {
position: absolute;
}

您需要调整顶部和左侧的值,因为我看不到它必须重叠的图像。

关于css - 导致空白和水平滚动条的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41880267/

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