html - 固定对象内的固定对象

标签 html css

我的网站上有交互式背景,但网站的“内容”会干扰。所以我申请了一个职位:fixed;到网站的内容,但在这个内容里面有两个位置的对象:固定的,它们应该随着页面滚动而移动,但现在它们没有。我怎样才能解决这个问题?查看网站 http://buddhatest.comyr.com/

如果你滚动页面,左边的对象和右边的对象应该向下移动,但没有。

最佳答案

fixed
The background is fixed with regard to the viewport. In paged media where there is no viewport, a ‘fixed’ background is fixed with respect to the page box and therefore replicated on every page. Note that there is only one viewport per view. Even if an element has a scrolling mechanism (see the ‘overflow’ property CSS21), a ‘fixed’ background doesn't move with the element.

关于html - 固定对象内的固定对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28185535/

相关文章:

javascript - 当我使用 lineTo 和 moveTo 绘制桨时,如何使用 Javascript 在 Breakout 中移动桨?

html - 错误application.html.erb

javascript - 如何在不改变宽度/高度的情况下垂直和水平对齐 DIV 中的图像?

jquery - 点击 Safari Mobile 中的突出显示和 jQuery on() 函数会产生巨大的突出显示

javascript - 将网站更改为 m。在移动设备上时

html - 使用悬停将一张图片替换为另一张图片

javascript - 在 AngularJS 上使用 nd-repeat 创建带有代表 future 20 年的数字的下拉列表的最佳方法是什么?

javascript - onkeydown/onkeypress html 和 javascript

html - 使图像覆盖变暗并在 CSS 中在其上添加文本

css - 如何使用css flex使列具有相同的宽度