css - 无法定位第二张背景图片
问题描述
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;
}
由于某种原因,我根本无法定位绿心,为什么?我不明白。谢谢你们的帮助。
解决方案
您将第一张图片的位置指定为top
and bottom
,这搞砸了。
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;
}
推荐阅读
- cluster-computing - slurm 请求整个节点
- python - tkinter 中的问答游戏 - 类问题
- r - 在分类轴上的绘图中添加垂直参考线
- google-sheets - 如何引用特定单元格中的查询数据
- python - 如何使用检查递归获取源代码?
- azure - 如何将文件从 Azure 文件共享复制到 Azure Blob?
- javascript - 如何在数据库中的单个表单中显示数据
- python - 大麻页面刮,尴尬的布局
- powerbi - 使用“List.Zip”替换 Power Query / Power BI / M 代码中的多个列值
- nuxt.js - 向 Nuxtjs 添加主题时,js 文件中出现错误