【问题标题】:Can't position the second background image无法定位第二张背景图片
【发布时间】:2018-06-12 15:34:00
【问题描述】:

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;

}

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

【问题讨论】:

    标签: css background background-position


    【解决方案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;
    }
    

    【讨论】:

      猜你喜欢
      • 2018-08-09
      • 1970-01-01
      • 2022-01-19
      • 2012-05-12
      • 1970-01-01
      • 2015-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多