【发布时间】:2012-12-01 17:06:21
【问题描述】:
我收到了this design,我正在尝试申请my website。请注意,<html> 元素有一个背景图片(手在空中),它贴在页面底部。
但是,当我将 css 文件迁移到我的应用程序时,由于某种原因,此图像出现在页面的中间位置。我检查了相关的 CSS,在这两种情况下都是:
html {
background-attachment: fixed;
background-clip: border-box;
background-color: transparent;
background-image: url("../../img/bg.svg");
background-origin: padding-box;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
outline: 0 none !important;
}
【问题讨论】:
标签: html css web-applications