无法定位第二张背景图片

时间:2018-06-12 15:34:00

标签: css background background-position

Trouble positioning second background image

body {
margin: 0;
padding: 0;
color: #666464;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 12px;
line-height: 1.4em; 

background-image: url( ../images/862a8380ba6984de1235023a8eef20e7.png), url(../images/green-heart-tree-PNG-thumb20.png);
background-position: top bottom, right top; 
background-repeat: no-repeat, no-repeat;

}

出于某种原因,我根本无法定位绿心,为什么?我不明白。谢谢你的帮助。

1 个答案:

答案 0 :(得分:1)

您指定的第一张照片的位置为topbottom,这会使其混乱。

body {
    margin: 0;
    padding: 0;
    color: #666464;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 12px;
    line-height: 1.4em; 

    background-image: url( ../images/862a8380ba6984de1235023a8eef20e7.png), url(../images/green-heart-tree-PNG-thumb20.png);
    background-position: top left, right top; 
    background-repeat: no-repeat, no-repeat;
}