我以前从未见过的非常奇怪的行为。
我有一个固定位置的 div,它有一个透明的 png 背景图像。z-index 设置为 -1,以便内容可以使用滚动条在固定图像上滚动。
我将它的底部和右侧定位在 0px,但图像与滚动条重叠(无论如何,在 FF 和 Safari 上。)
这是链接:
http://adamjcas.www59.a2hosting.com/pg/show/id/4
CSS:
#plants /*for the cut paper plants in the background*/
{
background: transparent url(../background_images/plants.png) no-repeat;
bottom:0px;
right:0px;
z-index: -1;
position:fixed;
height:691px;
width:475px;
}
我使用的一个技巧是正确使用:16px;
效果很好,因为总是(可能)有一个正确的滚动条。但底部滚动只是有时存在。这是一个简单的 CSS 问题吗?