我想知道这是否可行,能够将图像的背景位置设置到html文档的左上角,而不是它作为背景的元素的左上角。
伪代码
body {
background-image: url(someurlhere);
background-position: top left;
}
element {
background-image: url(sameurlhere);
background-position: top left /*Relative to body not element*/;
}
如果我需要为这个问题提供任何其他东西,请告诉我,我会修改它,但我相信它是相当直截了