背景图像不显示在右下角

时间:2013-03-13 00:52:33

标签: css background-image

CSS中有什么变化我不知道吗?我试图在屏幕的右下角放置一个图像。我不知道为什么会这样做,但它似乎是将图像从屏幕上推下来,我无法看到它。如果我删除bottom,它会将图像放在右边但不放在底部。如果我right top,则图片会显示在右上方。那么为什么它不显示在right bottom

*{
    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;
}

1 个答案:

答案 0 :(得分:6)

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

你的CSS中有这个吗?

html, body {
    min-height: 100%;
    min-width: 100%;
}
相关问题