gpt4 book ai didi

css - 背景图片不显示在右下角

转载 作者:行者123 更新时间:2023-12-02 08:42:26 31 4
gpt4 key购买 nike

CSS 中有什么我不知道的变化吗?我正在尝试将图像放在屏幕的右下角。我不知道为什么要这样做,但它似乎将图像推离了我看不到的屏幕。如果我删除 bottom 它会将图像放在右侧而不是底部。如果我执行 right top 图像显示在右上角。那么为什么它不显示在右下角上呢?

*{
box-sizing: border-box;
font-family: BentonSans, 'Lucida Sans', 'Lucida Grande', sans-serif;
color: rgb(102, 102, 102);
outline: none;
border: 0;
}
body{
font-size: 12pt;
padding: 0;
margin: 0;
background-image: url("/media/images/image1.jpg");
background-position: right bottom;
background-repeat: no-repeat;
}

最佳答案

我怀疑它与容器大小有关。

你的 CSS 里有这个吗?

html, body {
min-height: 100%;
min-width: 100%;
}

关于css - 背景图片不显示在右下角,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15375107/

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